Snowpack doesn't work with Fluent UI #3447
Unanswered
joelspadin
asked this question in
Troubleshooting
Replies: 0 comments
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.
-
I've run into the same problem described at #3206. I used @snowpack/app-template-react-typescript to create the project, then added a few components from @fluentui/react to my app, and now when using
snowpack dev
I get this error:Code generated by
snowpack build
has no such problems, so I can test my app, but that negates the point of using Snowpack at all.The generated @fluentui.react.v8.18.0.js file contains this bizarre import, which is attempting to import a massive number of things that do exist within @fluentui/react, but not from the script it's trying to import them from:
I noticed that node_modules/@fluentui/react/lib/index.js consists of many
export * from './<module>';
statements, and it looks like it would be exporting many of the things that appear in the import statement above. Snowpack might be somehow remapping all the things that @fluentui/react should be importing from other files in that module to @fluentui.date-time-utilities/lib/dateMath/dateMath.js?What can I do to help debug this?
Beta Was this translation helpful? Give feedback.
All reactions