-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Rename manager UI mjs to js #22244
Comments
Ta-da!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.9 containing PR #22247 that references this issue. Upgrade today to the
|
GET http://localhost:8866/sb-preview/runtime.js net::ERR_ABORTED 404 (Not Found) |
@tianlmn do you have a reproduction repo for me? |
I still see this file 404 from Github pages, the rest are totally fine, if I serve it up locally with npx http-server it is fine. assets/_commonjs-dynamic-modules-302442b1.js, it comes through with the wrong header. |
AH! I fixed this by bypassing jekyll: https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/ |
ZOMG!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.8 containing PR #22247 that references this issue. Upgrade today to the
|
@shilman Still happening after upgrade to 7.0.24 |
Please supply a reproduction |
I can't provide the whole storybook. Is there a particular file can make use of? |
@ix-xerri unfortunately not. Most likely there's something "off" in your dependencies / lockfile. |
hmm part of the reason is that the upgrade was removing |
Describe the bug
Users on Github pages / AWS / Nginx and other servers are having problems with the
.mjs
files shipped with Storybook's Manager UI:The general solution is to make our packages
type: module
and rename those files to.js
. We plan to do this for 8.0. However, there are a lot of thorny issues there and we don't have any near-term plans for an 8.0 release.That said, this appears to be a problem primarily with the Manager UI package. This package is special because it's entirely pre-bundled and self-contained (nothing depends on it).
Therefore, we propose to update the Manager UI to
type module
and have it run its own build script that generates.js
files instead of.mjs
. This will hopefully solve the user problems above without introducing all of the complexities or breaking changes associated with a wholesale move totype: module
To Reproduce
No response
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: