Ledzz / angular2-tinymce

Angular 2 component for TinyMCE MCE WYSIWYG editor
https://angular2-tinymce.surge.sh
66 stars 37 forks source link

Cannot find module 'angular2-tinymce'. #11

Closed mohitook closed 7 years ago

mohitook commented 7 years ago

Hello,

I have just updated the module because I thought it will work based on this issue: https://github.com/Ledzz/angular2-tinymce/issues/2 But right now I'm just getting this error when I'm trying to use the module as you write: image

Additionally: please update the link on the readme.md.. it is dead now. :)

I don't know actually how did I use it before, as you can see in the linked issue it's almost worked for me before.. but right now.. it's just not :(

Thanks!

Ledzz commented 7 years ago

@mohitook I tried to fresh install module from npm on a clean project and it worked. I'll update the module and the readme in a few a day, once I deal with compiling it with AOT. What compile instruments do you use?

mohitook commented 7 years ago

@Ledzz what do you mean "compile instruments"? I'm using Atom, atom-typescript package. but it is not compiling, just a hackable editor...

Ledzz commented 7 years ago

@mohitook sorry for my bad language. I mean something like webpack or angular-cli or anything else.

mohitook commented 7 years ago

@Ledzz as I see based on that the npm complaining about this every time I start anything: As a forewarning, we are moving the CLI npm package to "@angular/cli" with the next release,... that I'm using angular-cli... Sorry if it is not related and please share me the info how can I be sure whats running my compile instruments? I'm just a rookie and not even scratch the surface..

Ledzz commented 7 years ago

@mohitook you're right, you are using angular-cli. In package.json of your project you can see what version of cli is installed (it must be somewhere in devDependencies section). Current stable version is 1.0.0, update to this version and try again, it may be the problem.

joncombe commented 7 years ago

I'm having the same issue as @mohitook.

My angular-cli version is @angular/cli@1.0.0, and I also deleted my node_modules folder and did a fresh npm install. My angular2-tinymce version is 1.3.2.

ERROR in /path/to/app.module.ts (10,31): Cannot find module 'angular2-tinymce'.

ERROR in Error encountered resolving symbol values statically. Could not resolve angular2-tinymce relative to /path/to/app.module.ts., resolving symbol AppModule in /path/to/app.module.ts, resolving symbol AppModule in /path/to/app.module.ts, resolving symbol AppModule in /path/to/app.module.ts
webpack: Failed to compile.

Thanks

joncombe commented 7 years ago

FYI, I upgraded my project to Angular 4 and the above problem went away. I do see a different issue now and will raise a separate ticket for it. Thanks again for working on this.