Giter Site home page Giter Site logo

Comments (5)

zamirkhan avatar zamirkhan commented on May 21, 2024 2

My "solution" was to switch to cra-universal, which I've been quite happy with and did not require ejection.

from react-app.

AriTheElk avatar AriTheElk commented on May 21, 2024

I'm having the exact same issue with animate.css. Did you find a solution @zamirkhan?

/home/garet/Code/garet.io/node_modules/animate.css/animate.min.css:1
(function (exports, require, module, __filename, __dirname) { @charset "UTF-8";
                                                              ^

SyntaxError: Invalid or unexpected token
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.animate.css/animate.min.css (/home/garet/Code/garet.io/build/server.js:2697:18)

I'm guessing there must be a difference with the css-loader used in react-app. Since we don't have access to the webpack config I'm not sure if it's possible to fix without ejecting.

from react-app.

AriTheElk avatar AriTheElk commented on May 21, 2024

I'll check it out, thanks for the suggestion!

from react-app.

lyndseyjw avatar lyndseyjw commented on May 21, 2024

any updates? running into this same issue with
node_modules/react-datepicker/dist/react-datepicker.css:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){@charset "UTF-8";
SyntaxError: Invalid or unexpected token

from react-app.

YeyuanNielson1 avatar YeyuanNielson1 commented on May 21, 2024

any updates? running into this same issue with node_modules/react-datepicker/dist/react-datepicker.css:1 ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){@charset "UTF-8"; SyntaxError: Invalid or unexpected token

Same here. Have you got the solution? @lyndseyjw

from react-app.

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.