You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new blitz app with blitz new pnpm (blitz installed globally). Vscode jest extension fails to run tests and I am getting errors after running blitz dev using global module, but if I run the app using locally installed module (pnpm dev) it still logs the errors, now in different format, and runs.
Paste all your error logs here:
~\desktop\pnpm main ≢ 1.813s
❯ blitz dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from C:\Users\Nizomidin\desktop\pnpm\.env.local
info - Loaded env from C:\Users\Nizomidin\desktop\pnpm\.env
Error: Cannot find module '.blitz'
Require stack:
- C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\@blitzjs+core@0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\node_modules\@blitzjs\core\dist\blitzjs-core.cjs.dev.js
- C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\@blitzjs+core@0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\node_modules\@blitzjs\core\dist\blitzjs-core.cjs.js
- C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\blitz@0.41.1_36c5d53d03be96726e49ef745d3805fc\node_modules\blitz\dist\blitz.cjs.dev.js
- C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\blitz@0.41.1_36c5d53d03be96726e49ef745d3805fc\node_modules\blitz\dist\blitz.cjs.js
- C:\Users\Nizomidin\desktop\pnpm\.blitz.config.compiled.js
- C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\node_modules\@blitzjs\next\dist\server\config.js
- C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\node_modules\@blitzjs\next\dist\server\next.js
- C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\node_modules\@blitzjs\next\dist\server\lib\start-server.js
- C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\node_modules\@blitzjs\next\dist\cli\next-dev.js
- C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\node_modules\@blitzjs\next\dist\bin\next
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.mod._resolveFilename (C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\node_modules\@blitzjs\next\dist\build\webpack\require-hook.js:96:28)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (C:\Users\Nizomidin\desktop\pnpm\node_modules\.pnpm\@blitzjs+core@0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\node_modules\@blitzjs\core\dist\blitzjs-core.cjs.dev.js:18:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Nizomidin\\desktop\\pnpm\\node_modules\\.pnpm\\@blitzjs+core@0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\\node_modules\\@blitzjs\\core\\dist\\blitzjs-core.cjs.dev.js',
'C:\\Users\\Nizomidin\\desktop\\pnpm\\node_modules\\.pnpm\\@blitzjs+core@0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\\node_modules\\@blitzjs\\core\\dist\\blitzjs-core.cjs.js',
'C:\\Users\\Nizomidin\\desktop\\pnpm\\node_modules\\.pnpm\\blitz@0.41.1_36c5d53d03be96726e49ef745d3805fc\\node_modules\\blitz\\dist\\blitz.cjs.dev.js',
'C:\\Users\\Nizomidin\\desktop\\pnpm\\node_modules\\.pnpm\\blitz@0.41.1_36c5d53d03be96726e49ef745d3805fc\\node_modules\\blitz\\dist\\blitz.cjs.js',
'C:\\Users\\Nizomidin\\desktop\\pnpm\\.blitz.config.compiled.js',
'C:\\Users\\Nizomidin\\desktop\\pnpm\\node_modules\\.pnpm\\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\\node_modules\\@blitzjs\\next\\dist\\server\\config.js',
'C:\\Users\\Nizomidin\\desktop\\pnpm\\node_modules\\.pnpm\\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\\node_modules\\@blitzjs\\next\\dist\\server\\next.js',
'C:\\Users\\Nizomidin\\desktop\\pnpm\\node_modules\\.pnpm\\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\\node_modules\\@blitzjs\\next\\dist\\server\\lib\\start-server.js',
'C:\\Users\\Nizomidin\\desktop\\pnpm\\node_modules\\.pnpm\\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\\node_modules\\@blitzjs\\next\\dist\\cli\\next-dev.js',
'C:\\Users\\Nizomidin\\desktop\\pnpm\\node_modules\\.pnpm\\@blitzjs+next@11.1.0-0.41.1_4833af42bc1bc66e9c1c1c773f6c88ca\\node_modules\\@blitzjs\\next\\dist\\bin\\next'
]
}
I knew that the global cli wasn't working with pnpm, but pnpm dev is working on mac. Looks like that must be broken on windows.
So technically there are two issues here, probably should separate them. (1) global cli doesn't work on any platform with pnpm and (2) pnpm totally broken on windows
What is the problem?
I created a new blitz app with
blitz new pnpm
(blitz installed globally). Vscode jest extension fails to run tests and I am getting errors after runningblitz dev
using global module, but if I run the app using locally installed module (pnpm dev
) it still logs the errors, now in different format, and runs.Paste all your error logs here:
Paste all relevant code snippets here:
Nothing changed.
What are detailed steps to reproduce this?
pnpm add -g blitz
blitz new pnpm
(pnpm is the project name)cd pnpm
blitz dev
orpnpm dev
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
with
blitz dev
with
pnpm dev
The text was updated successfully, but these errors were encountered: