Closed stafyniaksacha closed 1 year ago
"devDependencies": { "nuxt": "^3.4.1", "std-env": "^3.3.2" }
https://stackblitz.com/edit/nuxt-starter-clagn3?file=nuxt.config.ts,tsconfig.json
std-env package is not resolved when using "moduleResolution": "bundler"
std-env
"moduleResolution": "bundler"
import { isDebug } from 'std-env' // Cannot find module 'std-env'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?(2792)
{ // https://v3.nuxtjs.org/concepts/typescript "extends": "./.nuxt/tsconfig.json", "compilerOptions": { "moduleResolution": "bundler" } }
No response
Hi. This should be fixed in last release. (https://github.com/unjs/std-env/pull/51)
Environment
Reproduction
https://stackblitz.com/edit/nuxt-starter-clagn3?file=nuxt.config.ts,tsconfig.json
Describe the bug
std-env
package is not resolved when using"moduleResolution": "bundler"
Additional context
No response
Logs
No response