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

type is module #225

Closed

Conversation

Thykof
Copy link
Contributor

@Thykof Thykof commented May 15, 2024

No description provided.

@Thykof Thykof linked an issue May 15, 2024 that may be closed by this pull request
@Thykof
Copy link
Contributor Author

Thykof commented May 15, 2024

e2e test fail with This file is being treated as an ES module because it has a '.js' file extension and '/home/runner/work/wallet-provider/wallet-provider/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.

So I try to fix it by renaming config file into ....cjs

Copy link

sonarcloud bot commented May 15, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Thykof
Copy link
Contributor Author

Thykof commented May 15, 2024

now it fails with:

HOME=/root npm run test-extension
shell: sh -e {0}

@massalabs/wallet-provider@2.0.0 test-extension
cd ./test-extension && npx playwright test

ReferenceError: __dirname is not defined in ES module scope

@Thykof Thykof closed this May 15, 2024
@Thykof Thykof deleted the 224-cant-use-in-the-ui-kit-or-in-a-smart-contract-project branch May 15, 2024 21:02
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

Successfully merging this pull request may close these issues.

Can't use in the ui kit or in a smart contract project
1 participant