Skip to content

importing vue results in a "regeneratorRuntime is not defined" error #8724

@codanator

Description

@codanator

Bug Report

Current Behavior
When importing vuejs in my project i getting following error in the browser: "regeneratorRuntime is not defined".

In the webpack debug ouput it will say:

Using polyfills with usage option:
Based on your code and targets, none were added.

Now i have to target an older browser (ie 11 or so) to get the regenerator-runtime included.
I am not sure if this is a bug... but i think i should work out of the box?

Babel Configuration (.babelrc, package.json, cli command)

{
	"presets": [
		[
			"@babel/preset-env",
			{

				"debug": true,
				"targets": {
					"chrome": "69",
					"firefox": "62",
					"edge": "17"
				},
				"useBuiltIns": "usage"
			}
		]
	]
}

Environment

  • Babel version(s): 7.1.0
  • Node/npm version: Node 8.11.4
  • OS: 10.13.6
  • How you are using Babel: loader

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions