You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to load a simple script with a default .js extension but the URL is missing a character and has an extra slash. This did not happen in 0.20.3, but broke in 0.20.4. Here is my config:
I found the change between 0.20.3 and 0.20.4 that is the root of the issue. In config.js there is a line to create a variable pkgName. You can see here that the variable gets assigned then used. In the previous version there was one more line to cut off the trailing slash.
Now that the package name keeps the trailing slash when we get to finding the sub-path from the normalized URL, packageKey is too long so one extra character from the sub-path gets removed. The sub-path for http://localhost:3000/foo becomes oo instead of foo and thus the errors above.
Overview
Trying to load a simple script with a default .js extension but the URL is missing a character and has an extra slash. This did not happen in 0.20.3, but broke in 0.20.4. Here is my config:
And for completeness my import:
Expected result
The script foo.js should load and execute.
Actual result
The script fails to load with 400 (Bad Request):
Apologies for the noisy error dump, but you can at least see the mangled URL.
The text was updated successfully, but these errors were encountered: