Open S0AndS0 opened 20 hours ago
Update; after installing suggested dependencies I got rid of remaining errors by adding "skipLibCheck": true
to my tsconfig.json
file!!!
{
"compilerOptions": {
"outFile": "./assets/js/main.js",
"target": "es2019",
"module": "AMD",
"lib": ["DOM", "DOM.Iterable", "es2019"],
"moduleResolution": "node",
"sourceMap": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"noImplicitAny": true,
"removeComments": true,
- "experimentalDecorators": false
+ "experimentalDecorators": false,
+ "skipLibCheck": true
},
"include": ["src/assets/js/**/*.ts", "./@types"],
"exclude": ["node_modules"]
}
... This likely means this Issue can be resolved once the TLDR
packages are added to y'alls' dependencies.
SDK
Web
Provide environment information
OS: Linux IDE: Vim Stage: TypeScript build fails for listed reasons
Howdy team! What follows are the configurations, commands, and resulting errors caused by attempting to install and use the MetaMask SDK in a new project. TLDR It seems as though
@types/readable-stream
,@types/react
, and some unknown packages are missing from y'alls'package.json
file. And any help on sorting out what the "unknown packages" be would be much appreciated.MetaMask SDK Version
0.30.3
MetaMask Mobile app Version
N/A
What browser are you using? (if relevant)
N/A
How are you deploying your application? (if relevant)
N/A
Describe the Bug
Error from
npm run ts-build
Installing suggested packages
Updated
package.json
Errors, though less, persist with
npm run ts-build
Expected Behavior
Expect
npm run ts-build
to build (transpile) TypeScript into JavaScriptLink to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
No response
To Reproduce
Initial
package.json
Write a TypeScript file that imports types from MetaMask
Run
npm run ts-build
as prescribed