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

tsconfig.server.json "#mdc-imports" uses a "./file:/home/..." path #2430

Closed
MichaelJCole opened this issue Nov 10, 2023 · 2 comments
Closed
Labels

Comments

@MichaelJCole
Copy link

MichaelJCole commented Nov 10, 2023

Environment

Hi, I'm having an issue similar to this: storybook-vue/storybook-nuxt#70

[nitro 12:27:06 PM]  ERROR  Error: Could not load file:///home/michael/causing-us/friend-server/.quasar/electron/baseLayer/.nuxt/mdc-imports.mjs (imported by node_modules/@nuxtjs/mdc/dist/runtime/parser/index.mjs): ENOENT: no such file or directory, open 'file:///home/michael/causing-us/friend-server/.quasar/electron/baseLayer/.nuxt/mdc-imports.mjs'


undefined

[nuxt] build:done: 1.920s
Error occurred in handler for 'api:generateSite': [Error: Could not load file:///home/michael/causing-us/friend-server/.quasar/electron/baseLayer/.nuxt/mdc-imports.mjs (imported by node_modules/@nuxtjs/mdc/dist/runtime/parser/index.mjs): ENOENT: no such file or directory, open 'file:///home/michael/causing-us/friend-server/.quasar/electron/baseLayer/.nuxt/mdc-imports.mjs'] {

I'm not using Storybook, but I have this exact same issue with a Nuxt 3 programmatic build.

The difference seems to be tsconfig.server.json.

Reproduction

I have a working version (my attempted reproduction) and a non-working version (my app). Both builds work without the content module.

Describe the bug

The difference seems to be tsconfig.server.json.

tsconfig.server.json - not working

      "#mdc-imports": [
        "./file:/home/michael/causing-us/friend-server/.quasar/electron/baseLayer/.nuxt/mdc-imports"
      ],

tsconfig.server.json - working

      "#mdc-imports": [
        "./mdc-imports"
      ],

I'm new to Nuxt and not sure how to debug this. Why does it use a file: protocol?

Additional context

No response

Logs

No response

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Aug 22, 2024
Copy link

This issue was closed because it has been stalled for 30 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant