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

Uncaught TypeError: $export is not a function on Chrome 56 #6

Open
alkavan opened this issue Mar 19, 2017 · 3 comments
Open

Uncaught TypeError: $export is not a function on Chrome 56 #6

alkavan opened this issue Mar 19, 2017 · 3 comments

Comments

@alkavan
Copy link
Contributor

alkavan commented Mar 19, 2017

Hey, I had an issue on Chrome 56.x when I got:
Uncaught TypeError: $export is not a function console message on upon running the server first time.

My issue seems to be solved by finding this post on stack. And changing transform-runtime to following:

plugins: [
  'add-module-exports',
  'transform-decorators-legacy',
  'transform-class-properties',
  'transform-object-rest-spread',
  ['transform-runtime', {helpers: false, polyfill: false, regenerator: true}]
]
@sasha240100
Copy link
Member

@alkavan seems like duplication of #5. Will try to fix it tomorrow. You may make a PR to make it faster

sasha240100 added a commit that referenced this issue Mar 21, 2017
Issue #6 Adding option to 'transform-runtime' plugin to avoid getting…
@hirako2000
Copy link
Contributor

fixed, we can close?

@saltcod
Copy link

saltcod commented May 4, 2018

exclude: /(node_modules|bower_components)/,

fixed for me. Entire thing:

module: {
		rules: [
			{
				test: /\.js$/,
				enforce: 'pre',
				loader: 'eslint-loader',
				query: {
					configFile: './.eslintrc'
				}
			},
			{
				test: /\.js$/,
				exclude: /(node_modules|bower_components)/,
				use: [
					{
						loader: 'babel-loader',
						options: {
							babelrc: true
						}
					}
				]
			}
		]
	},

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

4 participants