GithubHelp home page GithubHelp logo

Module build failed about modernizr-loader HOT 6 CLOSED

peerigon avatar peerigon commented on June 16, 2024
Module build failed

from modernizr-loader.

Comments (6)

flootr avatar flootr commented on June 16, 2024

Hey @vivekgs2007, is this related to #35?

from modernizr-loader.

vivekgs2007 avatar vivekgs2007 commented on June 16, 2024

No This is Different Issue. I tried adding this config

{ test: /\.modernizrrc$/, loader: 'modernizr'}

Got the above error

from modernizr-loader.

flootr avatar flootr commented on June 16, 2024

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.

vivekgs2007 avatar vivekgs2007 commented on June 16, 2024

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.

flootr avatar flootr commented on June 16, 2024

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.

vivekgs2007 avatar vivekgs2007 commented on June 16, 2024

Fixed the Bug By removing the

{
  test: /\.modernizrrc(\.json)?$/,
  loader: "modernizr!json"
},

from modernizr-loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.