Skip to content

TypeError: can't access property "document", this is undefined #2322

Discussion options

You must be logged in to vote

Interesting! I can't help with individual packages, but most likely something is happening in that package that breaks non-Webpack bundling. Snowpack is using Rollup internally to prepare your package, and it sounds like that's where the issue is coming from.

I'd recommend reaching out to that project, and seeing if they'd be interested in fixing so that all Rollup, Snowpack, Vite, etc. projects can work with their package.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by supermodo
Comment options

You must be logged in to vote
3 replies
@nojaf
Comment options

@supermodo
Comment options

@nojaf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants