Replies: 2 comments 1 reply
-
Oh interesting. Yea, I bet this issue is that Rollup treats that as a URL, in which case "es5-ext/array/#/e-index-of" is really "es5-ext/array/" (anything after a hash in a URL isn't a part of the path itself). Since that's a Rollup error that you're seeing I think that this is a CJS Rollup issue. If you could create a reproduction case in their issue template that would be a great first step: https://github.com/rollup/plugins/issues/new?template=BUG.md |
Beta Was this translation helpful? Give feedback.
1 reply
-
Did you ever find a solution to this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Getting the following error trying to use memoizee with snowpack:
I checked my node modules and
node_modules/es5-ext/array/#/e-index-of.js
exists.I'm not sure why the import ends up being
es5-ext/array/index.js#/e-index-of
(there is noindex.js
in the require path)Looking at the
get-fixed.js
inside memoizee in the node modules. The require is perfectly fine:var indexOf = require("es5-ext/array/#/e-index-of")
My guess is that the
#
freaks out snowpack somehow? Honestly I've never seen a folder called#
before, and have no clue whyes5-ext
decided that was a good idea. But other build systems have no problems handling this.Beta Was this translation helpful? Give feedback.
All reactions