Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: ./node_modules/react-spinners/ScaleLoader.js #29

Open
MoatazAbdAlmageed opened this issue Feb 27, 2021 · 0 comments
Open

Error: ./node_modules/react-spinners/ScaleLoader.js #29

MoatazAbdAlmageed opened this issue Feb 27, 2021 · 0 comments

Comments

@MoatazAbdAlmageed
Copy link

Thanks but I tried to add to exisitng project I found this issue




Error: ./node_modules/react-spinners/ScaleLoader.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: E:\frontity\az-translation\node_modules\react-spinners\ScaleLoader.js: pragma and pragmaFrag cannot be set when runtime is automatic.
> 1 | "use strict";
    | ^
  2 | var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
  3 |     if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  4 |     return cooked;
    at File.buildCodeFrameError (E:\frontity\az-translation\node_modules\@babel\core\lib\transformation\file\file.js:250:12)
    at NodePath.buildCodeFrameError (E:\frontity\az-translation\node_modules\@babel\traverse\lib\path\index.js:138:21)
    at PluginPass.enter (E:\frontity\az-translation\node_modules\@babel\plugin-transform-react-jsx\lib\create-plugin.js:163:28)
    at newFn (E:\frontity\az-translation\node_modules\@babel\traverse\lib\visitors.js:175:21)
    at NodePath._call (E:\frontity\az-translation\node_modules\@babel\traverse\lib\path\context.js:55:20)
    at NodePath.call (E:\frontity\az-translation\node_modules\@babel\traverse\lib\path\context.js:42:17)
    at NodePath.visit (E:\frontity\az-translation\node_modules\@babel\traverse\lib\path\context.js:92:31)
    at TraversalContext.visitQueue (E:\frontity\az-translation\node_modules\@babel\traverse\lib\context.js:116:16)
    at TraversalContext.visitSingle (E:\frontity\az-translation\node_modules\@babel\traverse\lib\context.js:85:19)
    at TraversalContext.visit (E:\frontity\az-translation\node_modules\@babel\traverse\lib\context.js:144:19)
 @ ./node_modules/@frontity/twentynineteen-theme/src/components/loading.js 1:339-386 1:493-499
 @ ./node_modules/@frontity/twentynineteen-theme/src/components/index.js
 @ ./node_modules/@frontity/twentynineteen-theme/src/index.js
 @ ./build/bundling/entry-points/az-translation/client.ts
 @ multi webpack-hot-middleware/client ./build/bundling/entry-points/az-translation/client.ts

If you need help please visit https://community.frontity.org/.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant