Comments (9)
this happens with 0.77, 0.76 and 0.72
node versions 20 and 18.19.1
from fuels-ts.
also problems with type-fest import in fuels-ts
from fuels-ts.
By running pnpm tsc app.ts
typescript's default compiler options are used. This still emits the app.js
file, but it prints out problems typescript finds in the dependencies - some due to excessive stack depth due to the recursive type generics are programmed, others due to a dependency using >ES2015 features while tsc
's default is ES3
, etc.
Long story short, running pnpm tsc app.ts --skipLibCheck
stops the errors being printed out and the user will get app.js
.
However, I'd highly suggest looking into using a tsconfig file and running pnpm tsc -p tsconfig.json
. This one is a good starter.
from fuels-ts.
By running
pnpm tsc app.ts
typescript's default compiler options are used. This still emits theapp.js
file, but it prints out problems typescript finds in the dependencies - some due to excessive stack depth due to the recursive type generics are programmed, others due to a dependency using >ES2015 features whiletsc
's default isES3
, etc.
mine is set to es2022
from fuels-ts.
@great9 can you share your tsconfig.json
contents with us and the full error log that gets produced?
from fuels-ts.
@great9 can you share your
tsconfig.json
contents with us and the full error log that gets produced?
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 18",
"target": "es2022",
"compilerOptions": {
"lib": [
"es2022",
"dom"
],
"module": "commonjs",
"moduleResolution": "Node",
"target": "es2022",
"esModuleInterop": true,
"skipLibCheck": false,
"forceConsistentCasingInFileNames": true,
"outDir": "dist",
"declaration": true,
"strict": true,
"noUnusedLocals": true
},
"include": [
"src/**/*"
]
}
from fuels-ts.
Thanks, can you set skipLibCheck
to true
and see if it fixes it?
from fuels-ts.
Thanks, can you set
skipLibCheck
totrue
and see if it fixes it?
I'm sure it will, but will the app work? Former version worked with skipLibCheck set to false...
from fuels-ts.
The quick answer is it'll work because skipLibCheck
is a stricter setting for compile-time checks and it doesn't affect the runtime. I'd have to do a deeper diver to understand which dependencies we (or you) introduced that's creating a conflict that skipLibCheck
finds.
from fuels-ts.
Related Issues (20)
- Investigate dependabot workflow runs hanging HOT 1
- Add support for `forc v0.61.0` HOT 4
- Make `deployContract` Method a Non-Blocking Call HOT 2
- Upgrade `graphql-request` library to latest version
- Upgrade `typedoc-plugin-markdown` package to latest
- Support String Slice (`str`) in program types HOT 1
- Example application for React Native HOT 1
- Add write permissions to PR labeller for external contributions HOT 4
- Document `launchNode` method
- Move complex CI worfklow logic into scripts HOT 1
- Upgrade `turbo` to latest
- Dependabot script not bumping patch versions in changesets HOT 3
- Add an increase to version strategy so Dependabot always bumps the `package.json`
- Aggregate breaking change instructions in CHANGELOG HOT 4
- Upgrade `typedoc-plugin-markdown` dependency HOT 2
- Browser tests are inconsistently failing due to dynamic `istanbul` import HOT 4
- Upgrade `commander` dependency HOT 6
- library doesn't work well with React-native HOT 1
- Support React Native HOT 1
- NodeModules:Unable to import ‘generateTestWallet’
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuels-ts.