-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreateReactApp: Module not found on build #3761
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
You don't need to install this package, only run: npx @semantic-ui-react/bootstrap It's hard to understand what is missing, can you push your project to GitHub? |
My apologies, that's what I meant by installing the package. |
IDK, please push the code to repo... |
I'll try and do that tonight.
In the meantime, is there a benefit to using theming over css for a one-off project?
Thanks
…________________________________
From: Oleksandr Fediashov <notifications@github.com>
Sent: Tuesday, 27 August 2019 08:39
To: Semantic-Org/Semantic-UI-React
Cc: fuwywawyuh; Author
Subject: Re: [Semantic-Org/Semantic-UI-React] Module not found on build (#3761)
IDK, please push the code to repo...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Had same error on
fallback to previous versions solved the problem |
I have the same issue. looks like 3.1.1 react-scripts do some breaking changes |
I do not have direct link to a less package |
Investigated a bit, it's caused by Will try to provide a proper fix tomorrow. |
Glad to know, I thought I was going insane. Sorry I couldn't provide a build earlier. Downgrading packages seems to work at the moment though if anyone else runs into this. Thanks |
|
I have since downgraded my main project. I have ran this into a project I was testing stuff out (which has practically 0 components etc, but has the same packages and had the error) and the build now runs successfully. |
Just updated react-scripts to 3.1.1 and tested your solution. Working perfect! Thanks! |
@victortrusov thank you for confirmation 👍 I introduced
|
I'm using a LESS mixin that is throwing a warning Needs to allow options to be passed down to craco-less.
|
https://gist.github.com/rickysullivan/e4b75f9a1f2ef77ba0ac733f9bb7395d Passes What do you think @layershifter? |
Hello @layershifter, I had an old code base using old semantic-ui-react setup with webpack which now have a lot of vulnerabilities. I so changed everything to use CRA + CRACO + I need to use the CSS Modules (to avoid too much codebase changes), I so do in the module.exports = {
plugins: [{
plugin: require('@semantic-ui-react/craco-less'),
options: {
cssLoaderOptions: {
modules: true,
localIdentName: '[local]_[hash:base64:5]',
},
},
}],
}; But still got a weird issue. Do you have any clue ? |
You can temporary use It should work, can you please check? |
I already tried that but got a weird issue with semantic-ui-less files.
Which is fixed by |
@layershifter Why not just allow |
@layershifter thoughts? |
@rickysullivan I will do a change with |
@layershifter legend! |
@rickysullivan released in I also created |
Not fully related to modules, but rickysullivan's solution gave me an idea for a fix to a problem where
The one-line CRACO config seems to not work in this particular setup with react-scripts 4.0.3 and semantic-ui-less 2.4.1 and semantic-ui-react 2.0.3. I ended up changing the contents of
Now it works perfectly, thanks for the idea to work with the craco config file! |
Hey,
This
has been happening to me in my create-react-app and I couldn't figure out what to do. I've started a new project, from scratch and this happened again so I believe I could either be missing a step, or there's a bug?
I've create a react app from scratch, installed semantic-ui-react, installed semantic-ui-less with craco and updated the package.json file. I've also included craco.config (should this be in /src?).
I've also installed semantic-ui-react/bootstrap package and updated the bottom of the theme.config file with the 4 lines, exactly as they are (should I be changing any values?)
I'm importing "import 'semantic-ui-less/semantic.less'" at the end of my index.js.
Did I miss anything?
Thanks
The text was updated successfully, but these errors were encountered: