Closed shimkiv closed 3 months ago
The issue will be gone if one will update to latest o1js
(the v1.2.0
as of today).
Problem here is that one is using the o1js v0.17.0
and in its package.json
it is referencing main entry point as: "main": "./dist/web/index.js",
(which is no longer the case for the latest version).
The workaround might be to:
"main": "./dist/web/index.js",
with the "main": "./dist/node/index.js",
in node_modules/o1js/package.json
. Or remove the "main"
configuration completely.
.js
extention, example:
import {...} from './File';
import {...} from './File.js';
While the workarounds will fix the sources parsing issues, we still need to provide correct supports of such cases!
Discord. Most likely caused by something related to: https://github.com/o1-labs/zkapp-cli/pull/640