Comments (6)
Hey @vivekgs2007, is this related to #35?
from modernizr-loader.
No This is Different Issue. I tried adding this config
{ test: /\.modernizrrc$/, loader: 'modernizr'}
Got the above error
from modernizr-loader.
Ok, and your modernizrrc
is written in JSON? If so, you have to add the json-loader
to your loader chain like this:
{ test: /\.modernizrrc$/, loader: 'modernizr-loader!json-loader' }
from modernizr-loader.
Still the same issue:
ERROR in ./conf/.modernizrrc
Module build failed: SyntaxError: Unexpected token ;
at Object.parse (native)
at Object.module.exports (/home/vshadaka/personal_html/archer/node_modules/json-loader/index.js:7:48)
@ ./src/index.js 9:0-20
from modernizr-loader.
It's a slightly different error message though. Could you also add your webpack configuration file here or is it the same as in #35?
from modernizr-loader.
Fixed the Bug By removing the
{
test: /\.modernizrrc(\.json)?$/,
loader: "modernizr!json"
},
from modernizr-loader.
Related Issues (20)
- the code `delete window.Modernizr` will throw an error in IE8 HOT 1
- Config from readme gives "path is not defined" HOT 2
- The modernizr-loader does not work with karma-webpack HOT 3
- Error in webpack Build HOT 26
- Error when parsing modernizrrc HOT 5
- Uncaught TypeError: _modernizr2.default.mq is not a function HOT 2
- json-loader is not required for webpack v2 and above HOT 1
- SyntaxError: Unexpected token : HOT 17
- specific chunk
- Pleas update npm docs!
- Add support for webpack 4 HOT 11
- [Docs] Installing modernizr package
- detection of keyframes does not work HOT 1
- No Such File or Directory HOT 1
- Build errors: dependencies not found HOT 2
- Is this project deprecated? HOT 4
- Dependency not found
- Not working with webpack@^5.0.0 HOT 5
- modernizr-loader does not work with json5-loader@4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modernizr-loader.