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

Error while importing file with dot e.g jquery.datepicker #167

Closed
losogudok opened this issue Sep 28, 2015 · 3 comments
Closed

Error while importing file with dot e.g jquery.datepicker #167

losogudok opened this issue Sep 28, 2015 · 3 comments

Comments

@losogudok
Copy link

Hi! In my main.scss I have Sass imports and when I try to process it with sass-loader it throws an error. This occurs only when I import file with dot e.g. jquery.dataTable. If I rename it, everything works just fine.

ERROR in /opt/projects/my-apps/static/scss/SampleApp/main.scss
 Module build failed: ModuleBuildError: Module build failed: 
 @import "../libs/jquery.dataTables";
 ^
 File to import not found or unreadable: ../libs/jquery.dataTables
 in /opt/projects/my-apps/static/scss/SampleApp/main.scss (line 11, column 9)
 at DependenciesBlock.onModuleBuildFailed (/home/andrey/.nvm/versions/node/v4.1.1/lib/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:315:19)
 at nextLoader (/home/andrey/.nvm/versions/node/v4.1.1/lib/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:270:31)
 at /home/andrey/.nvm/versions/node/v4.1.1/lib/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15
 at context.callback (/home/andrey/.nvm/versions/node/v4.1.1/lib/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:148:14)
 at Object.onRender (/opt/projects/my-apps/static/node_modules/sass-loader/index.js:253:13)
 at /opt/projects/my-apps/static/node_modules/sass-loader/node_modules/async/lib/async.js:868:35
 at _arrayEach (/opt/projects/my-apps/static/node_modules/sass-loader/node_modules/async/lib/async.js:91:13)
 at Object.<anonymous> (/opt/projects/my-apps/static/node_modules/sass-loader/node_modules/async/lib/async.js:867:17)
 at Object.callback (/opt/projects/my-apps/static/node_modules/sass-loader/node_modules/async/lib/async.js:44:16)
 at options.error (/opt/projects/my-apps/static/node_modules/node-sass/lib/index.js:280:32)
 @ ./main.js 3:0-11:2
@jhnns
Copy link
Member

jhnns commented Oct 23, 2015

Thx for reporting this. This is probably caused by the "funny" file resolver.

jhnns added a commit that referenced this issue Oct 25, 2015
This change demonstrates the bug described in #167
@jhnns jhnns closed this as completed in d3ef855 Oct 25, 2015
@jhnns
Copy link
Member

jhnns commented Oct 25, 2015

Shipped with 3.1.0

@losogudok
Copy link
Author

thanks!

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

2 participants