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 breaks Nuxt 3.6.1 #21931

Closed
Barbapapazes opened this issue Jul 4, 2023 · 10 comments
Closed

Jiti 1.19.0 breaks Nuxt 3.6.1 #21931

Barbapapazes opened this issue Jul 4, 2023 · 10 comments

Comments

@Barbapapazes
Copy link
Contributor

Barbapapazes commented Jul 4, 2023

Environment


  • Operating System: Windows_NT
  • Node Version: v18.12.1
  • Nuxt Version: 3.6.1
  • Nitro Version: 2.5.2
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Hello,

On Windows (and Linux), start a fresh project and install deps, you will this error

Nuxi 3.6.1                                                                                                  2:34:26 PM

[2:34:28 PM]  ERROR  Cannot create property 'C:/Users/esoubiran/dev/barbapapazes/agency/nuxt.config.ts' on string 'C:/Users/ESOUBI~1/AppData/Local/Temp/node-jiti'

  at evalModule (node_modules\.pnpm\[email protected]\node_modules\jiti\dist\jiti.js:1:254815)
  at Object.jiti (node_modules\.pnpm\[email protected]\node_modules\jiti\dist\jiti.js:1:253034)
  at resolveConfig (/C:/Users/esoubiran/dev/barbapapazes/agency/node_modules/.pnpm/[email protected]/node_modules/c12/dist/index.mjs:280:24)
  at loadConfig (/C:/Users/esoubiran/dev/barbapapazes/agency/node_modules/.pnpm/[email protected]/node_modules/c12/dist/index.mjs:116:40)
  at async loadNuxtConfig (/C:/Users/esoubiran/dev/barbapapazes/agency/node_modules/.pnpm/@[email protected]/node_modules/@nuxt/kit/dist/index.mjs:2483:18)
  at async loadNuxt (/C:/Users/esoubiran/dev/barbapapazes/agency/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/nuxt/dist/index.mjs:3205:19)
  at async loadNuxt (/C:/Users/esoubiran/dev/barbapapazes/agency/node_modules/.pnpm/@[email protected]/node_modules/@nuxt/kit/dist/index.mjs:2537:19)
  at async Object.invoke (/C:/Users/esoubiran/dev/barbapapazes/agency/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/chunks/prepare.mjs:31:18)
  at async _main (/C:/Users/esoubiran/dev/barbapapazes/agency/node_modules/.pnpm/[email protected]/node_modules/nuxi/dist/cli.mjs:48:20)

Describe the bug

/

Additional context

No response

Logs

No response

@Barbapapazes
Copy link
Contributor Author

Barbapapazes commented Jul 4, 2023

What if I use jiti 1.18? I will try.

EDIT: No issue with jiti 1.18.2

@Barbapapazes Barbapapazes changed the title Jiti 1.19.0 break Nuxt 3.6.1 Jiti 1.19.0 breaks Nuxt 3.6.1 Jul 4, 2023
@casualmatt
Copy link

Same issue.
image

@DogmaZh

This comment was marked as outdated.

@bozicstefan
Copy link

bozicstefan commented Jul 4, 2023

I am experiencing the same issue on Linux Ubuntu 22.04.2 LTS (Jammy Jellyfish), node v18.16.1.

Reproduction steps:
npx init myProject
cd myProject
npm i

Screenshot from 2023-07-04 15-06-20

@RomainSimonAB

This comment was marked as outdated.

@ThaoD5
Copy link

ThaoD5 commented Jul 4, 2023

Same here, failing at deploy of nuxt2 project using vercel
Cannot create property '/vercel/path0/nuxt.config.js' on string '/tmp/node-jiti'

Overrides do not seem to help with it

@pi0
Copy link
Member

pi0 commented Jul 4, 2023

Upstream: unjs/jiti#147

Hotfix added in [email protected]. Please make sure to upgrade lock file to receive the fix 🙏🏼

@pi0 pi0 closed this as completed Jul 4, 2023
@Barbapapazes
Copy link
Contributor Author

Upstream: unjs/jiti#147

Hotfix added in [email protected]. Please make sure to upgrade lock file to receive the fix 🙏🏼

resolved with this version! Thanks @pi0

@dudunato

This comment was marked as outdated.

@ThaoD5
Copy link

ThaoD5 commented Jul 4, 2023

Also resolved for me on vercel deploy; thanks @pi0

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

9 participants