Skip to content
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

Migrate to web3sorage new version issue #156

Open
hashemnik opened this issue Jan 14, 2024 · 1 comment
Open

Migrate to web3sorage new version issue #156

hashemnik opened this issue Jan 14, 2024 · 1 comment

Comments

@hashemnik
Copy link

ENVIRONMENT: windows 10
@web3-storage/w3up-client: "12.0.0",
node: v18.16.0
npm : 9.8.1

My app was running for about one year on previous version of web3storage on nodejs, now I have updated my app but got this error:

{
"errorType": "Error",
"errorMessage": "require() of ES Module /var/task/node_modules/@web3-storage/w3up-client/dist/src/index.node.js from /var/task/ipfs.js not supported.\nInstead change the require of index.node.js in /var/task/ipfs.js to a dynamic import() which is available in all CommonJS modules.",
"trace": [
"Error [ERR_REQUIRE_ESM]: require() of ES Module /var/task/node_modules/@web3-storage/w3up-client/dist/src/index.node.js from /var/task/ipfs.js not supported.",
"Instead change the require of index.node.js in /var/task/ipfs.js to a dynamic import() which is available in all CommonJS modules.",
" at Object. (/var/task/ipfs.js:31:31)",
" at Object. (/var/task/paymentJob.js:27:27)",
" at Object. (/var/task/index.js:5:22)",
" at _tryRequireFile (file:///var/runtime/index.mjs:1002:37)",
" at _tryRequire (file:///var/runtime/index.mjs:1052:25)",
" at _loadUserApp (file:///var/runtime/index.mjs:1081:22)",
" at UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:27)",
" at start (file:///var/runtime/index.mjs:1282:42)",
" at file:///var/runtime/index.mjs:1288:7"
]
}

@hashemnik
Copy link
Author

Should I transfer this issue to another sub project of web3ostorage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant