Hello,

I have modified the path of the components directory (in the .info file) :
- ./src/components > - ./src/twig/components

But, when I compile the css & js files I get this error :

Uncaught Error: Module build failed (from ./node_modules/css-loader/index.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):

undefined
       ^
      Can't find stylesheet to import.
   ╷
54 │ @import "../components/node/node";

The default path of component directory is used to compile files.

There is no possibilities to alter the component path and compile files without problem?

thanks.

Comments

kumkum29 created an issue. See original summary.

kumkum29’s picture

Also, we must modify the path in the subtheme.style.scss !
After, we delete the subtheme.js and subtheme.css files before to recompile the files.

Now, this problem seems to be resolved...

kumkum29’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.