question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

is-map: 'return' outside of function

See original GitHub issue

When I try to update to v5.3.0-beta.23 I get this error when building the project

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)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:69 (35 by maintainers)

github_iconTop GitHub Comments

6reactions
ljharbcommented, Dec 17, 2019

v2.0.1 of both is-map and is-set have been released; this can be closed.

6reactions
alonfixlerfiverrcommented, Dec 16, 2019

@shilman These are my storybook dependencies:

β€œ@storybook/addon-actions”: β€œ^4.1.11”, β€œ@storybook/addon-knobs”: β€œ^4.1.11”, β€œ@storybook/addon-links”: β€œ^4.1.11”, β€œ@storybook/addon-options”: β€œ^4.1.11”, β€œ@storybook/addon-viewport”: β€œ^4.1.11”, β€œ@storybook/addons”: β€œ^4.1.11”, β€œ@storybook/cli”: β€œ^4.1.11”, β€œ@storybook/react”: β€œ^4.1.11”

I’m not using the presets package but I’ve also started experiencing it today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does JavaScript map function return undefined?
In that case, the function returns undefined , what you are seeing in the result. The map function is used to map one...
Read more >
Return Outside Function error in Python - Initial Commit
In this article, you'll take a closer look at the return statement and how to fix the return outside function Python error.
Read more >
Python map() function with EXAMPLES - Guru99
The map() function is going to apply the given function on all the items inside the iterator and return an iterable map object...
Read more >
Array.prototype.map() - JavaScript - MDN Web Docs
The map() method creates a new array populated with the results of calling a provided function on every element in the calling array....
Read more >
9 Functionals - Advanced R
All map functions always return an output vector the same length as the input, ... That allows you to see the problematic output,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found