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
Node 16.15.3
Ember 3.28.5
Webpack 5 / ember-auto-import 2+
Following webpack 5's docs explicitly to setup a fallback for 'path' when using the usual ember-cli-buildreturn app.toTree() this poly fill works fine.
We now get an error thrown from a dependency (i am going to shorthand this error) as:
Module not found: Error: Can't resolve 'path' in '.../node_modules/nedb/lib/persistence.js'
BREAKING CHANGE: webpack < 5 used to include polyfills ...
If you want to include a polyfill, you need to:
add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
install 'path-browserify'
Expected Behavior
For 'path' to still be resolved. I saw another thread where index.js for the package had to be directly referenced. I tried many combinations of this and it did not seem to resolve the issue.
The text was updated successfully, but these errors were encountered:
Configuration
Node 16.15.3
Ember 3.28.5
Webpack 5 / ember-auto-import 2+
Following webpack 5's docs explicitly to setup a fallback for 'path' when using the usual ember-cli-build
return app.toTree()
this poly fill works fine.When attempting to update to use @embroider/webpack following installation instructions and replacing the former with
Error / Bug
We now get an error thrown from a dependency (i am going to shorthand this error) as:
Module not found: Error: Can't resolve 'path' in '.../node_modules/nedb/lib/persistence.js'
BREAKING CHANGE: webpack < 5 used to include polyfills ...
If you want to include a polyfill, you need to:
Expected Behavior
For 'path' to still be resolved. I saw another thread where
index.js
for the package had to be directly referenced. I tried many combinations of this and it did not seem to resolve the issue.The text was updated successfully, but these errors were encountered: