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

Only in iPad Safari browser, failed to load the code built by BabelJS #9

Open
hb-shanmuk opened this issue Mar 6, 2018 · 0 comments

Comments

@hb-shanmuk
Copy link

hb-shanmuk commented Mar 6, 2018

What I have in .babelrc is

  {
    "presets": [
      ["env", { "modules": false }],
      "stage-2"
    ],
    "plugins": ["transform-runtime", "transform-es2015-arrow-functions", "transform-class-properties"],
    "env": {
      "test": {
        "presets": ["env", "stage-2"],
        "plugins": ["transform-es2015-modules-commonjs", "dynamic-import-node"]
      },
      "production": {
        "presets": ["minify"]
      },
      "staging": {
        "presets": ["minify"]
      }
    }
  }

Here is the exact error log

SyntaxError: Unexpected token '>'

eval — app.js:1126
./node_modules/ceri/lib/wrapper.js — app.js:1126
webpack_require — app.js:20
(anonymous function)
Eval Code
eval
./node_modules/ceri-icon/lib/icon.js — app.js:993
webpack_require — app.js:20
(anonymous function)
Eval Code
eval
./src/mixins/ceri-icon.js — app.js:8907
webpack_require — app.js:20
Eval Code
eval
./src/mixins/helpers.js — app.js:8939
webpack_require — app.js:20
Eval Code
eval
./src/app.js — app.js:8028
webpack_require — app.js:20
Eval Code
eval
./src/main.js — app.js:8891
webpack_require — app.js:20
(anonymous function) — app.js:63
Global Code — app.js:64

In node_modules/ceri/lib/wrapper.js code where showing error is

this._crCb.forEach(cb => {
  cb.call(this)
})

Even though provided all the dependency plugins for babel to compile ES6 code still I am getting the same issue(Only on iPad safari).

@hb-shanmuk hb-shanmuk changed the title Build failing with babeljs, only in iPad Safari particularly for a code in ceriJS Only in iPad Safari browser, failed to load the code built code by BabelJS Mar 6, 2018
@hb-shanmuk hb-shanmuk changed the title Only in iPad Safari browser, failed to load the code built code by BabelJS Only in iPad Safari browser, failed to load the code built by BabelJS Mar 6, 2018
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