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

Jiti 1.19.0 is broken with Cannot create property on string #147

Closed
daniluk4000 opened this issue Jul 4, 2023 · 9 comments
Closed

Jiti 1.19.0 is broken with Cannot create property on string #147

daniluk4000 opened this issue Jul 4, 2023 · 9 comments

Comments

@daniluk4000
Copy link

daniluk4000 commented Jul 4, 2023

Environment

Nuxt 2 latest, Node 18

Reproduction

Seems to be present in Nuxt 2 minimal builds

Describe the bug

Nuxt 2 fails to start after upgrade to Jiti 1.19.0

Additional context

No response

Logs

`warp-nuxt       |  FATAL  Cannot create property '/app/nuxt.config.ts' on string '/tmp/node-jiti'
warp-nuxt       |
warp-nuxt       |   at evalModule (node_modules/jiti/dist/jiti.js:1:254815)
warp-nuxt       |   at jiti (node_modules/jiti/dist/jiti.js:1:253034)
warp-nuxt       |   at Object.loadNuxtConfig (node_modules/@nuxt/config/dist/config.js:857:15)
warp-nuxt       |   at loadNuxtConfig (node_modules/@nuxt/cli/dist/cli-index.js:295:32)
warp-nuxt       |   at NuxtCommand.getNuxtConfig (node_modules/@nuxt/cli/dist/cli-index.js:397:26)
warp-nuxt       |   at Object._listenDev (node_modules/@nuxt/cli/dist/cli-dev.js:63:30)
warp-nuxt       |   at Object.startDev (node_modules/@nuxt/cli/dist/cli-dev.js:49:25)
warp-nuxt       |   at Object.run (node_modules/@nuxt/cli/dist/cli-dev.js:44:16)
warp-nuxt       |   at NuxtCommand.run (node_modules/@nuxt/cli/dist/cli-index.js:356:22)
warp-nuxt       |   at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
warp-nuxt       |
warp-nuxt       |
warp-nuxt       |    ╭───────────────────────────────────────────────────────────────────────╮
warp-nuxt       |    │                                                                       │
warp-nuxt       |    │   ✖ Nuxt Fatal Error                                                  │
warp-nuxt       |    │                                                                       │
warp-nuxt       |    │   TypeError: Cannot create property '/app/nuxt.config.ts' on string   │
warp-nuxt       |'/tmp/node-jiti'
warp-nuxt       |    │                                                                       │
warp-nuxt       |    ╰───────────────────────────────────────────────────────────────────────╯
warp-nuxt       |

Also CI/CD:
image

@JacopoKenzo
Copy link

Having the same issue deploying a Shopify Hydrogen store with Oxygen

@erikuit
Copy link

erikuit commented Jul 4, 2023

Same for Nuxt 3 here

@daniluk4000

This comment was marked as outdated.

@dominik-eller

This comment was marked as outdated.

@Barbapapazes

This comment was marked as outdated.

@danielroe

This comment was marked as outdated.

@szmarczak
Copy link

Same here, using Svelte & Tailwind

@pi0
Copy link
Member

pi0 commented Jul 4, 2023

Hotfix added in jiti@1.19.1. Please make sure to upgrade lockfile to receive the fix 🙏🏼

@pi0 pi0 closed this as completed Jul 4, 2023
@pi0 pi0 changed the title Jiti 1.19.0 broke Nuxt 2 Jiti 1.19.0 is broken with Cannot create property on string Jul 4, 2023
@ThaoD5
Copy link

ThaoD5 commented Jul 4, 2023

Works great, thanks @pi0 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants