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

is-set 'return' outside of function (12:1) #3

Closed
hckhanh opened this issue Dec 15, 2019 · 2 comments
Closed

is-set 'return' outside of function (12:1) #3

hckhanh opened this issue Dec 15, 2019 · 2 comments
Labels
invalid This doesn't seem right

Comments

@hckhanh
Copy link

hckhanh commented Dec 15, 2019

I really don't know what is going on when I upgrade my packages. Then I get this error

ERROR in ./node_modules/is-map/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: node_modules\is-map\index.js: 'return' outside of function (12:1)
@ljharb
Copy link
Member

ljharb commented Dec 15, 2019

return is perfectly valid at the top level of any CJS module; are you using some kind of bundler that isn't properly wrapping CJS modules?

@shilman
Copy link

shilman commented Dec 16, 2019

I think this might be due to a Storybook bug. Investigating now.

@ljharb ljharb added the invalid This doesn't seem right label Dec 16, 2019
@ljharb ljharb closed this as completed in 4f9eeee Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants