You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requiring any modules defined in webpack configuration under resolve.modules does not seem to work currently. This also affects any npm modules under node_modules
Pug: - const classnames = require('classnames');
Error:
ERROR in Error: Child compilation failed:
Module build failed (from ./node_modules/@webdiscus/pug-loader/src/index.js):
NonErrorEmittedError: (Emitted value instead of an instance of Error)
[pug-loader] Pug compilation failed.
PugLoaderException:
[pug-loader] the file 'classnames' can't be resolved in the pug template:
/path/to/project/pug/file.pug
Error: Can't resolve 'classnames' in '/path/to/project/pug/'
at processResult (/path/to/project/node_modules/webpack/lib/NormalModule.js:755:12)
at /path/to/project/node_modules/webpack/lib/NormalModule.js:860:5
at /path/to/project/node_modules/loader-runner/lib/LoaderRunner.js:400:11
at /path/to/project/node_modules/loader-runner/lib/LoaderRunner.js:252:18
at context.callback (/path/to/project/node_modules/loader-runner/lib/LoaderRunner.js:124:13)
at /path/to/project/node_modules/@webdiscus/pug-loader/src/index.js:217:21
at Object.compile (/path/to/project/node_modules/@webdiscus/pug-loader/src/index.js:168:5)
at Object.module.exports (/path/to/project/node_modules/@webdiscus/pug-loader/src/index.js:216:11)
ModuleBuildError: Module build failed (from ./node_modules/@webdiscus/pug-loader/src/index.js):
The text was updated successfully, but these errors were encountered:
Resolving of modules under node_modules was intentionally disabled to increase performance when used huge amount of required resources (e.g. images, icons) and because using of a npm module directly in pug template is very very rare case.
Requiring any modules defined in webpack configuration under resolve.modules does not seem to work currently. This also affects any npm modules under node_modules
Pug:
- const classnames = require('classnames')
;Error:
The text was updated successfully, but these errors were encountered: