Giter VIP home page Giter VIP logo

Comments (9)

toniov avatar toniov commented on July 17, 2024 1

I don't think there is a problem with p-iteration.

According to this Q/A it seems you need to install babel-polyfill as well.

from p-iteration.

nakawankuma avatar nakawankuma commented on July 17, 2024 1

According to the the Q/A I linked before, it seems you also need babel-core to make it work.

sorry.
It extracted code is some .

from p-iteration.

toniov avatar toniov commented on July 17, 2024

Hi!

Have you installed babel-preset-es2016 npm module? Also, I think you need babel-preset-es2017 as well.

from p-iteration.

nakawankuma avatar nakawankuma commented on July 17, 2024

I installed es2015. I tell es2016 install.

package.json
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2016": "^6.24.1",
but I see compile error .
Couldn't find preset "es2017" relative to directory

I more install es2017.

package.json
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2016": "^6.24.1",
"babel-preset-es2017": "^6.24.1",
Gulp.js

return browserify(
        {
        entries:  'jsxsrc/app.jsx', debug: true,
        })
    .transform(babelify, { presets: ["react", 'es2017'] })

I take green, but take a runtime exception.
"regeneratorRuntime is not defined"

I copy static find method and revert setting....

from p-iteration.

nakawankuma avatar nakawankuma commented on July 17, 2024

ok.
thank you toniov.
I think install babel-polyfill.
thank you.

from p-iteration.

toniov avatar toniov commented on July 17, 2024

You're welcome :)

Feel free to open another issue if you have any problem.

from p-iteration.

nakawankuma avatar nakawankuma commented on July 17, 2024

I installed polifill and more.
pcakage.json
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2016": "^6.24.1",
"babel-preset-es2017": "^6.24.1",
"babel-preset-react": "^6.24.1",
but I tell message "regeneratorRuntime is not defined".
I Change "static-methods.js"
import 'babel-polyfill';
will done.

Do you think about it?
I use polyfill in first time. I dont know change is correct.

from p-iteration.

toniov avatar toniov commented on July 17, 2024

According to the the Q/A I linked before, it seems you also need babel-core to make it work.

from p-iteration.

nakawankuma avatar nakawankuma commented on July 17, 2024

Oh I mistake.
before
app.js
import from xxxx
import 'babel-polyfill';

after
app.js
import 'babel-polyfill';
import from xxxx

Its done.

from p-iteration.

Related Issues (11)

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.