file:///var/task/dist/index.js:4import { bootstrap } from './bootstrap'; ^^^^^^^^^SyntaxError: Named export 'bootstrap' not found. The requested module './bootstrap' is a CommonJS module, which may not support all module.exports as named exports.CommonJS modules can always be imported via the default export, for example using:import pkg from './bootstrap';const { bootstrap } = pkg; at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21) at async ModuleJob.run (node:internal/modules/esm/module_job:217:5) at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) at async c (/opt/rust/nodejs.js:8:14633)Node.js process exited with exit status: 1. The logs above can help with debugging the issue.INIT_REPORT Init Duration: 224.63 ms Phase: invoke Status: error Error Type: Runtime.ExitErroryou can see my source code in project.
here is my tsconfig.json:
{ "compilerOptions": { "target": "ES2022", "lib": ["ES2022"], "experimentalDecorators": true, "emitDecoratorMetadata": true, "module": "ES2022", "rootDir": "src", "moduleResolution": "Node", "baseUrl": "./", "types": ["node"], "resolveJsonModule": true, "allowJs": true, "declaration": false, "outDir": "dist", "removeComments": true, "allowSyntheticDefaultImports": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, "noImplicitAny": true, "strictPropertyInitialization": false, "skipLibCheck": true }, "exclude": ["node_modules", "eslint.config.mjs", "dist"]}