polyfact/polyfire-js

Not sure what's wrong

Closed this issue · 3 comments

import * as t from "polyfact-io-ts";
^^^^^^

SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/home/runner/RapidHeartfeltOutliers/index.js:1:18)
at Module._compile (node:internal/modules/cjs/loader:1256:14)

/home/runner/RapidHeartfeltOutliers/node_modules/polyfact/index.js:1

Hey @Listlessness. Can you try to update to version 0.1.79 and confirm that it works ?
It seems there was an issue with our build system that broke the nodejs compatibility. I changed the target to ES5 and it seems to have solved it on my side.

Since it seems to be working on my side and someone else who had the same issue reported it being fixed on the discord, i'll close this issue.
Feel free to reopen it if the problem is still happening