`import.meta` meta-property is only allowed when the --module option is ...
Hi! After updating to Nuxt 3.12.2, in some of my projects, I started getting the following error whenever I use
import.meta
(attached image)
Have any of you encountered it too?3 Replies
https://stackblitz.com/github/nuxt/starter/tree/v3?file=my-module%2Fsrc%2Fmodule.ts
here it is in a completely new project
StackBlitz
Nuxt - Starter - StackBlitz
Create a new Nuxt project, module, layer or start from a theme with our collection of starters.
Add this to your tsconfig:
"compilerOptions": {
"module": "es2022"
}