You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% npx vsce package Executing prepublish script 'npm run vscode:prepublish'...
> [email protected] vscode:prepublish
> npm run package
> [email protected] package
> npm run check-types && node esbuild.js --production
> [email protected] check-types
> tsc --noEmit(node:78135) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.(Use `node --trace-warnings ...` to show where the warning was created)/Users/pranavchiku/repos/lfortran-lsp/esbuild.js:1import * as esbuild from 'esbuild';^^^^^^SyntaxError: Cannot use import statement outside a module at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1153:20) at Module._compile (node:internal/modules/cjs/loader:1205:27) at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47
use the following diff:
diff --git a/esbuild.js b/esbuild.js
index 9599ae0..d447f02 100644
--- a/esbuild.js+++ b/esbuild.js@@ -1,4 +1,4 @@-import * as esbuild from 'esbuild';+const esbuild = require('esbuild');
const watch = process.argv.includes('--watch');
The text was updated successfully, but these errors were encountered:
% npx vsce packageExecuting prepublish script 'npm run vscode:prepublish'...
> [email protected] vscode:prepublish
> npm run package
> [email protected] package
> npm run check-types && node esbuild.js --production
> [email protected] check-types
> tsc --noEmit(node:25484) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.(Use `node --trace-warnings ...` to show where the warning was created)/Users/pranavchiku/repos/lfortran-lsp/esbuild.js:1import * as esbuild from 'esbuild';^^^^^^SyntaxError: Cannot use import statement outside a module at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1153:20) at Module._compile (node:internal/modules/cjs/loader:1205:27) at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47Node.js v20.9.0 ERROR npm failed with exit code 1
If you face the following error:
use the following diff:
The text was updated successfully, but these errors were encountered: