Open qin-guan opened 2 years ago
Hi @qin-guan. I would suggest to track the issue via https://github.com/nuxt/content/issues/1438. There seem multiple incompatibility issues with Content and Worker* targets.
Ah, I didn’t notice that. The two issues don’t seem too related though 😅 since this seems specific to PNPM/Turbo Package Manager. I cannot reproduce it with Yarn or NPM.
Environment
Linux
v16.14.2
3.0.0-rc.8
npm@7.17.0
vite
ssr
,nitro
,modules
@nuxt/content@2.0.1
-
Reproduction
https://stackblitz.com/edit/github-6kcvvz?file=nuxt.config.ts
Describe the bug
Using Nuxt Content with the
service-worker
preset on StackBlitz throws the error below during build. The error also occurs when using PNPM locally. Using Yarn resolves the issue.Additional context
Discovered while investigating https://github.com/nuxt/content/issues/1365
Logs