Issues when building sim #152
Unanswered
sadrajafari
asked this question in
Q&A
Replies: 1 comment
-
|
Hello! I think I'd need more information to help. Are you using the scenerystack npm package, or the PhET build process ( Either way, I'm curious about whether d3 is detecting an environment where it thinks it doesn't need to define a global (if it detects it is being loaded as a module, for instance). This is especially true as a grunt preload (we've had to patch some libraries to continue to declare a global). |
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
Uh oh!
There was an error while loading. Please reload this page.
-
For a simulation we are working on, we are using a minified version of d3. This works completely fine when running it on the development server. However, when we build it, it cannot find it and we get
d3 is undefined. We tried exporting it to global.window.d3, window.d3, etc. Originally we just imported it through the preloads. We also tried importing it directly inside our code, however it either could not find it, or we would get an unallowed MIME type error. Also, whenever we try using typescript components we get this same MIME type error.Do you guys know of any way to resolve this?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions