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

ReferenceError: regeneratorRuntime #51

Closed
ArashiGrey opened this issue Apr 23, 2018 · 10 comments
Closed

ReferenceError: regeneratorRuntime #51

ArashiGrey opened this issue Apr 23, 2018 · 10 comments

Comments

@ArashiGrey
Copy link

I'm getting the following error:

ERROR build:compile
ReferenceError: regeneratorRuntime is not defined

I didn't have any problems before installing the module. I'm using "@nuxtjs/axios": "4.5.2", "nuxt":1.4.0", "nuxtent": "1.4.1"

any suggestions?

@benjamindedonder
Copy link

benjamindedonder commented Apr 24, 2018

I am having the same issue

"@nuxtjs/axios": "^5.3.1",
"netlify-cms": "^1.6.0",
"nuxt": "^1.4.0",
"nuxt-netlify-cms": "^3.0.0",
"nuxtent": "^1.4.1",

@stursby
Copy link

stursby commented Apr 25, 2018

Also getting this issue... same dep versions

"dependencies": {
    "@nuxtjs/axios": "^5.3.1",
    "nuxt": "^1.4.0",
    "nuxt-netlify-cms": "^3.0.0",
    "nuxtent": "^1.4.1"
 }

@huygn
Copy link

huygn commented Apr 26, 2018

I got the same issue, solved by adding babel-polyfill

yarn add -D babel-polyfill

then add require('babel-polyfill') at the top of your nuxt.config.js

@ArashiGrey
Copy link
Author

@huygn It works now thank you. I had tried to before to add babel-polyfill in my build and that didn't work. At top is perfect 😃

@medfreeman
Copy link
Owner

I just added transform-runtime babel plugin, so webpack properly transforms async functions in the resulting build.
You should not need to require babel-polyfill anymore.
Thanks for the report !

@medfreeman
Copy link
Owner

I'll cut a release in a moment, when i have closed a remaining issue.

@benjamindedonder
Copy link

Updated to netlify-cms 1.7.0 and nuxt-netlify-cms 3.0.1 and when I navigate to http://localhost:3000/admin I get:

Error loading the CMS configuration

The config.yml file could not be loaded or failed to parse properly.

Error message: YAMLException: end of the stream or a document separator is expected at line 15, column 14: line-height: 1.15; /* 1 */ ^

Check your console for details.

@ArashiGrey
Copy link
Author

@benjamindedonder Would you show your yml file? Looks to be a formatting issue.

@benjamindedonder
Copy link

benjamindedonder commented Apr 30, 2018

backend:
  name: git-gateway
  repo: benjamindedonder/hetvoedselbos.be
  branch: dev

publish_mode: editorial_workflow

media_folder: "static/images"
public_folder: "/images"

display_url: https://dev.hetvoedselbos.be

collections:
  - name: "events"
    label: "Events"
    label_singular: "Event"
    folder: "content/events"
    create: true
    slug: "{{date}}_{{slug}}"
    fields:
      - { label: "Image", name: "image", widget: "image" }
      - { label: "Date", name: "date", widget: "datetime" }
      - { label: "Title", name: "title", widget: "string" }
      - { label: "Description", name: "description", widget: "string" }

Also, I don't quite understand how /amdin is supposed to work locally as it requires logging in

@ArashiGrey
Copy link
Author

@benjamindedonder I did a test with your yml and everything worked fine. I don't know about the admin part. When I played with it before adding Netlify Identify I could use it locally without logging in, but since adding that it forces me to login on my live site.

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

5 participants