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
Describe the bug
When attempting to use the Modernizr runtime with through a compilation tool like Gulp, I get the following error from Node: Error: Can't walk dependency graph: Cannot find module 'env!env/file' from './node_modules/requirejs/bin/r.js'
How to Reproduce Install via NPM:
npm install modernizr --save
Initialise Modernizr
const modernizr = require('modernizr');
// Options passed in are those described in https://github.com/Modernizr/Modernizr/blob/master/lib/config-all.json
modernizr.build({ ... });
Expected behavior
This implementation of Modernizr should be parseable without errors during compilation.
Additional context
Modernizr version: 3.11.8
I appreciate that this could be a bug with Requirejs, but I'm not finding any issues similar to mine in either repo at the moment. Based on the fact that requirejs is a dependency of Modernizr, it made sense to report the issue here.
Additionally, I have also confirmed that the issue is not caused by the build tools I am using.
Edit - more context
Interestingly, when testing the example above and compiling with Webpack, we still get errors - but slightly different:
These dependencies were not found:
* generate in /node_modules/modernizr/lib/build.js
* lib/generate-banner in /node_modules/modernizr/lib/build.js
* package in /node_modules/modernizr/lib/build.js
To install them, you can run: npm install --save generate lib/generate-banner package
It feels as if this could be the root of the problem, where Gulp and Webpack are reporting different symptoms of the same problem.
The text was updated successfully, but these errors were encountered:
Type of bug
Describe the bug
When attempting to use the Modernizr runtime with through a compilation tool like Gulp, I get the following error from Node:
Error: Can't walk dependency graph: Cannot find module 'env!env/file' from './node_modules/requirejs/bin/r.js'
How to Reproduce
Install via NPM:
Initialise Modernizr
Expected behavior
This implementation of Modernizr should be parseable without errors during compilation.
Additional context
Modernizr version: 3.11.8
I appreciate that this could be a bug with Requirejs, but I'm not finding any issues similar to mine in either repo at the moment. Based on the fact that requirejs is a dependency of Modernizr, it made sense to report the issue here.
Additionally, I have also confirmed that the issue is not caused by the build tools I am using.
Edit - more context
Interestingly, when testing the example above and compiling with Webpack, we still get errors - but slightly different:
It feels as if this could be the root of the problem, where Gulp and Webpack are reporting different symptoms of the same problem.
The text was updated successfully, but these errors were encountered: