-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Vite Production build putting files in ./build/build/assets
(One build folder too deep)
#8038
Comments
Confirm to get the same problem after migrating Remix from 2.2.0 to v2.3.0 |
FWIW, this issue is not fixed by the work around described here: #8023 (comment) I thought the two issues were related but maybe not? |
If I'm understanding correctly, this might be the same issue. The server Is the issue you've raised actually causing any issues with actual runtime behaviour? If you delete the |
Yes. The app does not work at runtime because it's looking for a js file in the assets directory that is not there. It might work if I configure my server to pull from UPDATE: Nope, still doesn't work |
Seeing the same issue. ± yarn start
yarn run v1.22.19
$ remix-serve ./build/index.js
Error: Cannot find module '/Users/dylan/dev/pfcs/build/assets/remix-form-WrDF9P50.js' imported from /Users/dylan/dev/pfcs/build/index.js
at new NodeError (node:internal/errors:406:5)
at finalizeResolution (node:internal/modules/esm/resolve:233:11)
at moduleResolve (node:internal/modules/esm/resolve:845:10)
at defaultResolve (node:internal/modules/esm/resolve:1043:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
|
@nicksrandall Am I understanding correctly that your original issue is fixed by #8039, but you're now hitting this issue: #8041 — which should be fixed by #8042? |
Reproduction
https://stackblitz.com/edit/remix-run-remix-jsc5mp?file=public%2Fvite.config.ts
System Info
Used Package Manager
npm
Expected Behavior
I expect Vite plugin to match output of Remix (esbuild) compiler.
Actual Behavior
Server assets are in one folder too deep.
The text was updated successfully, but these errors were encountered: