Skip to content

Ctrl+click (go to file) doesn't work for saas-loader ~ imports (node_modules) #136

@2-5

Description

@2-5

Trying to Ctrl+click on the imported module name fails:

@import '~bootstrap/scss/bootstrap';

with this error:

Unable to open '_bootstrap.scss': File not found (file:///PROJECT/src/styles/~bootstrap/scss/_bootstrap.scss).

The reason is that I'm using webpack with saas-loader, and saas-loader treats an import path starting with ~ as an import from node_modules: https://github.com/webpack-contrib/sass-loader#imports

So the actual location from where the import should be loaded is:

file:///PROJECT/node_modules/bootstrap/scss/_bootstrap.scss

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions