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
file:///.../node_modules/@fuel-ts/abi-typegen/dist/index.mjs:864
import { compile } from "handlebars";
^^^^^^^
SyntaxError: Named export 'compile' not found. The requested module 'handlebars' 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 'handlebars';
const { compile } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:132:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:214:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:28:7)
at async handleMainPromise (node:internal/modules/run_main:113:12)
Node.js v20.11.1
What version of fuels-ts are you using?
0.74.0
Steps to Reproduce
npm install @fuel-ts/abi-typegen
echo 'import "@fuel-ts/abi-typegen";' > main.mjs
node main.mjs
Expected Behavior
Should run.
Actual Behavior
Side note about the types in this package: https://arethetypeswrong.github.io/?p=%40fuel-ts%2Fabi-typegen%400.74.0
The text was updated successfully, but these errors were encountered: