Replies: 1 comment 2 replies
-
@gunnnnii I am experiencing the same issue and would love to know if you were able to resolve this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I want to lead by mentioning that the dev experience with Snowpack has mostly been phenomenal! Huge props to all of you working on this.
I think I may have come across a bug, although I'm fairly new to Snowpack so it could very well be a problem with my setup.
The issue that I have is an imported variable in a dependency ends up being undefined.
Specifically, I'm trying to import a plugin for Uppy. I've tried multiple plugins and their all failing with the same error:
Uncaught TypeError: Cannot read property 'Plugin' of undefined
(
Plugin
is a class in@uppy/core
that all plugins extend)And this is the line it fails on:
var Plugin = lib$1.__moduleExports.Plugin;
Looking around
web_modules
, I notice something I think is odd.lib$1
is not a module, but an imported value from a file in/common
,import { l as lib$1, T as Translator } from '../common/index-40e5907d.js';
. So referring to__moduleExports
seems wrong.in
index-40e5907d.js
we have the following:Here is a repo with my setup: https://github.com/gunnnnii/snowpack-import-errors
I'm not sure what I should be looking for to debug this, so I hope what I've written up is any help.. Snowpack doesn't log any errors, all I see is the typeerror in the browser console.
Beta Was this translation helpful? Give feedback.
All reactions