Skip to content
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

Build using baseURL stopped working on production #14565

Closed
lucassimines opened this issue Aug 12, 2022 · 7 comments
Closed

Build using baseURL stopped working on production #14565

lucassimines opened this issue Aug 12, 2022 · 7 comments

Comments

@lucassimines
Copy link

Environment

My application stopped working after upgrading to rc.8, I use a baseURL:

app: {
    baseURL: '/admin'
 },

Running a dev server it works, but when running npm run start I get the following errors.

Screen Shot 2022-08-12 at 15 03 37

Reproduction

.

Describe the bug

Mjs files are not found

Additional context

No response

Logs

No response

@pi0
Copy link
Member

pi0 commented Aug 12, 2022

Would you please provide a reproduction? 🙏🏼

/cc @danielroe

@LeoTuet
Copy link

LeoTuet commented Aug 18, 2022

Facing the same issue.
While setting up the reproduction I noticed that this bug only occurs when creating an additional page.
Otherwise it only occurs on first page load while working when refreshing the page.

Reproduction: https://codesandbox.io/s/twilight-architecture-9f7olx?file=/nuxt.config.ts

@lucassimines
Copy link
Author

Facing the same issue. While setting up the reproduction I noticed that this bug only occurs when creating an additional page. Otherwise it only occurs on first page load while working when refreshing the page.

Reproduction: https://codesandbox.io/s/twilight-architecture-9f7olx?file=/nuxt.config.ts

Nice! Thanks for the reproduction. I'm still using the rc.6 because of this issue.

@danielroe
Copy link
Member

Would you try on the edge channel? https://v3.nuxtjs.org/guide/going-further/edge-channel/

I believe this may have been resolved in nuxt/framework#6637.

@lucassimines
Copy link
Author

Would you try on the edge channel? https://v3.nuxtjs.org/guide/going-further/edge-channel/

I believe this may have been resolved in nuxt/framework#6637.

Changed to the edge channel and I got this error while running npm run build

Screen Shot 2022-08-18 at 17 24 31

@danielroe
Copy link
Member

danielroe commented Aug 18, 2022

Yes, I can confirm that the reproduction above doesn't show the same issue on the edge channel. @lucassimines please do create a new issue with a reproduction for this rather odd issue. (Might be worth running nuxi cleanup first). 🙏

@lucassimines
Copy link
Author

Yes, I can confirm that the reproduction above doesn't show the same issue on the edge channel. @lucassimines please do create a new issue with a reproduction for this rather odd issue. (Might be worth running nuxi cleanup first). 🙏

After many attempts, I found what is causing the odd issue. I will create another issue with the reproduction.

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants