Skip to content

Instantly share code, notes, and snippets.

@dcalhoun
Created April 7, 2016 16:46
Show Gist options
  • Save dcalhoun/04d48160bc14610c6377c190f86e8798 to your computer and use it in GitHub Desktop.
Save dcalhoun/04d48160bc14610c6377c190f86e8798 to your computer and use it in GitHub Desktop.
Errors from importing Modernizr with modernizr-loader.
ERROR in ./~/modernizr/lib/build.js
Module not found: Error: Cannot resolve module 'generate' in /Users/username/Sites/web/gn-join/node_modules/modernizr/lib
@ ./~/modernizr/lib/build.js 151:2-72
ERROR in ./~/modernizr/lib/build.js
Module not found: Error: Cannot resolve module 'lib/generate-banner' in /Users/username/Sites/web/gn-join/node_modules/modernizr/lib
@ ./~/modernizr/lib/build.js 151:2-72
ERROR in ./~/modernizr/lib/build.js
Module not found: Error: Cannot resolve module 'package' in /Users/username/Sites/web/gn-join/node_modules/modernizr/lib
@ ./~/modernizr/lib/build.js 151:2-72
ERROR in ./~/modernizr/lib/options.js
Module not found: Error: Cannot resolve module 'fs' in /Users/username/Sites/web/gn-join/node_modules/modernizr/lib
@ ./~/modernizr/lib/options.js 1:9-22
ERROR in ./~/modernizr/lib/metadata.js
Module not found: Error: Cannot resolve module 'fs' in /Users/username/Sites/web/gn-join/node_modules/modernizr/lib
@ ./~/modernizr/lib/metadata.js 1:9-22
ERROR in ./~/modernizr/~/requirejs/bin/r.js
Module parse failed: /Users/username/Sites/web/gn-join/node_modules/modernizr/node_modules/requirejs/bin/r.js Line 1: Unexpected token ILLEGAL
You may need an appropriate loader to handle this file type.
| #!/usr/bin/env node
| /**
| * @license r.js 2.1.22 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
@ ./~/modernizr/lib/build.js 133:18-38
ERROR in ./~/modernizr/~/file/lib/file.js
Module not found: Error: Cannot resolve module 'fs' in /Users/username/Sites/web/gn-join/node_modules/modernizr/node_modules/file/lib
@ ./~/modernizr/~/file/lib/file.js 2:9-22
@skolomiiets
Copy link

i have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment