Giter VIP home page Giter VIP logo

Comments (8)

Fedeorlandau avatar Fedeorlandau commented on August 15, 2024

Hi @ScottMalmberg ! The errors come from Jodit itself. Their types aren't the best.

For typescript projects you should add https://www.typescriptlang.org/tsconfig/skipLibCheck.html to your tsconfig.json file.

This will build your project regardless any TS error on node_modules/. Read more here

{
 "skipLibCheck": true
}

If this doesn't work please let me know,

Cheers

from jodit-react-ts.

ScottMalmberg avatar ScottMalmberg commented on August 15, 2024

Thanks for the response! Unfortunately, that flag is already set in my project. Strange that no errors come through when using jodit-react, too. I am able to run your example after cloning into this repo, but not when I try to add it to any of my existing projects.

from jodit-react-ts.

Fedeorlandau avatar Fedeorlandau commented on August 15, 2024

Could you please share me your tsconfig.json? It would be super helpful for Jodit and I. What kind of framework are you using? Nextjs, gatsby? Create-react-app? Cheers,

from jodit-react-ts.

ScottMalmberg avatar ScottMalmberg commented on August 15, 2024

Definitely! It's a React project with Webpack in a mono-repo. This is the tsconfig in the specific project I'm trying to use it in:

{
"compilerOptions": {
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"allowJs": false,
"allowSyntheticDefaultImports": false,
"alwaysStrict": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"sourceMap": true,
"inlineSourceMap": false,
"jsx": "react",
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": false,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"preserveConstEnums": false,
"pretty": true,
"outDir": "./lib",
"rootDir": "./src",
"strictNullChecks": true,
"suppressExcessPropertyErrors": false,
"target": "es6",
"skipLibCheck": true,
"typeRoots": [
"./node_modules/@types",
"../../node_modules/@types",
"./typings"
],
},
"include": [
"./src/**/*"
],
"exclude": [
"node_modules",
"lib"
]
}

And this is the tsconfig in the root of my mono-repo:

{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"sourceMap": true,
"noImplicitAny": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"declaration": true,
"lib": [
"es5",
"es6",
"dom"
],
"jsx": "react",
"types": [
"node"
],
"sourceRoot": "src",
"declarationDir": "dist",
"outDir": "dist",
"typeRoots": [
"./node_modules/@types"
]
},
"exclude": [
"node_modules"
]
}

from jodit-react-ts.

mhammadsiddiqui avatar mhammadsiddiqui commented on August 15, 2024

I am having th e same issue while using,
"jodit-react": "^1.1.1",
"typescript": "^4.4.2"
and "skipLibCheck": true, option in my tsconfig.json.

I can not do gulp serve. Is it due to tslint ?

from jodit-react-ts.

Fedeorlandau avatar Fedeorlandau commented on August 15, 2024

I am having th e same issue while using,

"jodit-react": "^1.1.1",

"typescript": "^4.4.2"

and "skipLibCheck": true, option in my tsconfig.json.

I can not do gulp serve. Is it due to tslint ?

Could you please make a sandbox with a basic set up so I can test it?

Regards

from jodit-react-ts.

mhammadsiddiqui avatar mhammadsiddiqui commented on August 15, 2024

I am having th e same issue while using,
"jodit-react": "^1.1.1",
"typescript": "^4.4.2"
and "skipLibCheck": true, option in my tsconfig.json.
I can not do gulp serve. Is it due to tslint ?

Could you please make a sandbox with a basic set up so I can test it?

Regards

There is a compiling error;
Capture

from jodit-react-ts.

Remyrd77 avatar Remyrd77 commented on August 15, 2024

I am having th e same issue while using,
"jodit-react": "^1.1.1",
"typescript": "^4.4.2"
and "skipLibCheck": true, option in my tsconfig.json.
I can not do gulp serve. Is it due to tslint ?

Could you please make a sandbox with a basic set up so I can test it?
Regards

There is a compiling error; Capture

Were you able to resolve this error ?

from jodit-react-ts.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.