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

error in npm package "@peaq-network/sdk": "^0.5.1" #12

Open
Maltstar opened this issue Jun 25, 2024 · 0 comments
Open

error in npm package "@peaq-network/sdk": "^0.5.1" #12

Maltstar opened this issue Jun 25, 2024 · 0 comments

Comments

@Maltstar
Copy link

Maltstar commented Jun 25, 2024

Using sdk from peak-network after installing the sdk from npm @peaq-network/sdk

npm install @peaq-network/sdk

does not work.
The npm package concerned is

 @peaq-network/sdk": "^0.5.1" 

Either using

 import { Sdk } from "@peaq-network/sdk";

if package.json is configured with

type:"module",

or if not, using

require("@peaq-network/types/package.json"); // @peaq-network/types is a peer dependency. 
const sdk = require("@peaq-network/sdk")

Only importing the Sdk either way causes a compilation error in the npm module @peaq-network/types/ :

Error: Cannot find module '.../node_modules/@peaq-network/types/src/index.js'. Please verify that the package.json has a valid "main" entry
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