Skip to content
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

enabled scoped option emit error in Windows #25

Closed
ytkj opened this issue Mar 30, 2017 · 0 comments
Closed

enabled scoped option emit error in Windows #25

ytkj opened this issue Mar 30, 2017 · 0 comments

Comments

@ytkj
Copy link

ytkj commented Mar 30, 2017

  • lib/template-loader.js:61
const loaderPath = require.resolve('./scoped-style-loader.js')
return `var styles = require('${loaderPath}?id=${id}!${stylePath}')`

In Windows environments, the cumputed value of ${loaderPath} is 'C:\path\to\scoped-style-loader.js', not 'C:\\path\\to\\scoped-style-loader.js'.
Some characters such as '\t', for example, is escaped unexpectedly.

As a result, error "unable to resolve module 'C:\athoscoped-style-loader.js'" is emitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant