-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix webpack config errors #339
Conversation
Not entirely sure. The change was based on this issue I found, although it may be outdated. This article suggests minification may be the issue, but I'm not sure. Given that the documentation does not suggest this config, I would hold off from merging this PR. I can do some additional investigation on other options. |
Gotcha. I don't mind changing to |
…e- does not seem to be recommended by the documentation
There is some discussion here - with the eval flag set, it (DevTools) can't find the sourcemap. So the solution is to not use it or use inlined sourcemaps. This may be why the FetchAPI is failing to load the file. Let's do some testing! Working:
Not Working:
It's odd that not setting the devtool leads to an error - the errors are also different, although the Fetch error is the same:
This leads me to believe that there could be an error in prod, although I don't see one in the web console. After all of this, I was thinking that the error could be with our express app not sending the sourcemaps, so I tried running webpack-dev-server, but had the same errors. For now, I think using source-map (which is suggested by the documentation as a config) is probably our best bet. |
Sorry @will-jac forgot about this one. So it sounds like any |
Yes, that's what I would suggest using. You should double-check that it works after all the recent changes to the simulator. |
@will-jac sounds good, I'll change that, verify it, and merge this if you're good with that |
This solves issue #165 by changing the devtool used by webpack to the correct one.
This also solves issue #164 by properly bundling the monaco webworker via changes to the webpack config