Comments (6)
Build gives error:
ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
from jodit-angular.
Work around...
I've had to delete the node_modules folder so often that I've made a script to go in package.json scripts:
"fix-jodit-node-modules": "fix-jodit-node-modules.bat",
Contents of fix-jodit-node-modules.bat (for windows of course):
IF EXIST .\node_modules\jodit-angular\node_modules (
rd .\node_modules\jodit-angular\node_modules /S /q
)
from jodit-angular.
In my case, using wrong angular versions made the error occur.
Angular versions must match this library version, currently 5.2.11
I used npm update
to do so, and then ng-bootstrap caused errors since it now requires angular 6.
Using npm install --save @ng-bootstrap/[email protected]
did the trick
from jodit-angular.
Build gives error:
ERROR in node_modules/@angular/core/src/render3/ng_dev_mode.d.ts(9,11): error TS2451: Cannot redeclare block-scoped variable 'ngDevMode'.
--
Same problem with angular 6
from jodit-angular.
Same problem Angular 6...
from jodit-angular.
Work around...
I've had to delete the node_modules folder so often that I've made a script to go in package.json scripts:"fix-jodit-node-modules": "fix-jodit-node-modules.bat",
Contents of fix-jodit-node-modules.bat (for windows of course):
IF EXIST .\node_modules\jodit-angular\node_modules (
rd .\node_modules\jodit-angular\node_modules /S /q
)
This worked to me with Node.js 12.10: https://stackoverflow.com/a/57866165
In your package.json, add:
"scripts": {
"postinstall": "path_to_your_script"
}
Then, create a script in your project with the following:
const fs = require('fs');
fs.rmdirSync('node_modules/jodit-angular/node_modules', {recursive: true});
This will run when you npm install, so you don't have to manually delete the folder.
from jodit-angular.
Related Issues (20)
- Problem with Angular Universal
- Angular 13 support HOT 19
- Get editor upon component init HOT 1
- Unable to install [email protected] in Angular 9 HOT 1
- Jodit-Multi-Pro with Angular 13 HOT 6
- Support Angular 15? Issue with setDisabledState HOT 8
- Is RxJs dependency needed? HOT 1
- OEM license key for premium plugins
- Angular 16 support HOT 5
- Error in popup output HOT 1
- Angular 15 HOT 2
- change default target for all links
- Jodit custom bundle
- I would like to know if the "resizer" plugin is available in the free plan.
- Angular warns about CommonJS or AMD dependency
- Cannot change background-color of jodit-editor HOT 2
- How to init value? HOT 2
- I got an error 'has no selector, please add it!' when run 'ng build --prod' HOT 2
- Upgrade to Angular 12? HOT 5
- Module not found: Error: Can't resolve 'jodit' HOT 2
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 jodit-angular.