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
Webpack error with imported variables #855
Comments
So, the root of the problem is the missing extension in the import. The enhanced resolve doesn't know how to find it. It appears that the default resolve option extensions were dropped in this #830. A few options for this fix:
|
Re-opening this as my work-around 👆🏻 really shouldn't be required for basic configs. The |
Hi @kinetifex! I think it's happened because the default value for |
Environment
3.0.0-beta.13
webpack@5.59.0
14.15.1
macOS@11.6
Description
We've been using Linaria successfully in our projects for a while now. However, I have encountered a strange issue recently with using the Webpack loader, but which works with CLI.
If I use a constant that is imported from another module, Webpack blows up with
finishWithoutResolve
error.For example:
Fails to build, erroring with:
Can't resolve './breakpoints' in '/path/to/linaria-webpack-bug/src'
Reproducible Demo
A reproducible repo with steps is available here:
https://github.com/kinetifex/linaria-webpack-bug
The text was updated successfully, but these errors were encountered: