-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESM issues when upgrading to 9.0.0 #510
Comments
@goncer, I just cloned the repo, and tried it with chopsticks v0.9.0, my vscode does not give import errors after changing import to // /utils/Framework/XcmHelper.ts
import {
Blockchain,
BuildBlockMode,
setupWithServer,
} from "@acala-network/chopsticks";
import { StorageValues } from "@acala-network/chopsticks-core"; Which script give the error here? |
@goncer You are importing from |
@goncer also seems like you're importing setStorage using file path. You don't need to. It's a global export |
It fails when running the tests.. :s |
tried your repo and was able to reproduce |
Adding Another problem is that chopsticks package can only support either cjs or esm, because we use |
could be related: jestjs/jest#11563 |
@goncer can you try |
Works with 0.9.1-2! 🎉 |
Hey,
I'm running into issues when upgrading to 9.0.0.
first, looks like set-storage is being moved,
and after fix it, it looks like that some exports are missing or something,
Looks like that the package is not compatible anymore with esm :(
The text was updated successfully, but these errors were encountered: