question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build using baseURL stopped working on production

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
LeoTuetcommented, 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

1reaction
lucassiminescommented, Aug 19, 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). 🙏

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Base URL is not working in Grails production mode
I am using grails-2.4.5 version. I have some menu link in my side menu template where I am using attribute for controller name...
Read more >
tsconfig paths not working when building for production #986
When using Typescript paths in tsconfig, the project can be built with nodemon, but not with tsc (with npm run start:prod ). Expected...
Read more >
Env Variables and Modes - Vite
Some built-in variables are available in all cases: import.meta.env.MODE : {string} the mode the app is running in. import.meta.env.BASE_URL : {string} the ...
Read more >
Troubleshooting | Jekyll • Simple, blog-aware, static sites
If you ever run into problems installing or using Jekyll, here are a few ... Base-URL Problems; Configuration problems; Markup Problems; Production Problems...
Read more >
Modes and Environment Variables - Vue CLI
NODE_ENV - this will be one of "development" , "production" or "test" depending on the mode the app is running in. BASE_URL -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found