-
Notifications
You must be signed in to change notification settings - Fork 415
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
Cant resolve .linariacache #278
Comments
I don't have a windows machine to test unfortunately :( |
@satya164 I don't WSL is used here, if you look at the paths:
|
Having the same issue. Is it maybe the |
Maybe it's how Webpack handles absolute paths on Windows? From this issue, looks like we need to escape the slashes: webpack/webpack#66 So we need to insert: Can you try this branch and tell me if it works @mfarhadpur? https://github.com/callstack/linaria/tree/%40satya164/win-path |
@satya164 Yes, seems to be working fine. Thanks for looking into it! |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
webpack throws error
Can't resolve 'C:my-project.linaria-cachesrcApp.linaria.css' in 'C:\my-project\src'
configuration
.babelrc
{ "presets": [ "@babel/preset-env", "@babel/preset-typescript", "@babel/preset-react", "linaria/babel" ], "plugins": [ ["@babel/plugin-proposal-decorators", { "legacy": true }], ["@babel/plugin-proposal-class-properties", { "loose": true }], "react-hot-loader/babel" ] }
rules for webpack
{ test: /\.css$/, use: [ { loader: 'style-loader' }, { loader: 'css-loader', options: { sourceMap: !isProd, }, }, ], }, { test: /\.(j|t)sx?$/, exclude: /node_modules/, use: [ { loader: 'babel-loader' }, { loader: 'linaria/loader', options: { sourceMap: !isProd }, } ]
"linaria": "^1.0.0-beta.0"
"webpack": "^4.23.1",
OS - windows 10
The text was updated successfully, but these errors were encountered: