yabab-dev / ng2-ckeditor

Angular2 CKEditor component
MIT License
358 stars 96 forks source link

Make a mistake in build(angular6) #225

Closed zzz closed 6 years ago

zzz commented 6 years ago

image What is the reason for this?

kzimny commented 6 years ago

strange path ./node_modules/_ng2-ckeditor By default the ng2-ckeditor package is installed in ./node_modules/ng2-ckeditor Did you try to uninstall and install the ng2-ckeditor package?

zzz commented 6 years ago

@kzimny ng serve,This command runs and does not go wrong image

kzimny commented 6 years ago

nice, but are you not looking for a solution of your error? I'm trying to give you a hint... Install ng2-ckeditor in ./node_modules/ng2-ckeditor The package should be installed by default in this path.

zzz commented 6 years ago

@kzimny Thank you very much! I want to ask, where is this configuration? I didn't find this configuration file. image

kzimny commented 6 years ago

Try the following:

packages: {
'ng2-ckeditor': {
main: 'lib/ng2-ckeditor',
defaultExtension: 'js'
}
}
zzz commented 6 years ago

@kzimny I don't know where to paste this code. What is the name of the file? image Can you tell me the trouble?

kzimny commented 6 years ago

If you are not working with commonjs module code generation you don't need to set the path explicitly. I guess you are working with Angular CLI, in this case no additional configuration is needed. Try to setup a new project as follows:

ng new myckeditor
cd myckeditor
npm install ng2-ckeditor --save

The ng2-ckeditor package should be installed in ./node_modules/ng2-ckeditor folder

kzimny commented 6 years ago

No answer.