{"id":15,"hash":"260bfec61a515a098971ca40d12cf77dcc775d70f0dd5581bf415057671f709e","pattern":"SyntaxError: Cannot use import statement outside a module","full_message":"SyntaxError: Cannot use import statement outside a module","ecosystem":"npm","package_name":null,"package_version":null,"solution":"Node is running the file as CommonJS but it contains ES module syntax.\n1. Add `\"type\": \"module\"` to package.json (or rename the file to .mjs).\n2. If using TypeScript: set `\"module\": \"NodeNext\"` and `\"moduleResolution\": \"NodeNext\"`.\n3. For a script in a CJS project, use `.mjs` extension instead of changing package-wide config.","confidence":0.95,"source":"internal","source_url":null,"votes":40,"created_at":"2026-04-19T03:24:36.998727+00:00","updated_at":"2026-04-19T04:51:00.541276+00:00"}