sibiraj-s / ngx-editor

🖋️ Rich Text Editor for angular using ProseMirror
https://sibiraj-s.github.io/ngx-editor/
MIT License
424 stars 183 forks source link

[Bug]: Unexpected token ':' #540

Open jowin202 opened 3 weeks ago

jowin202 commented 3 weeks ago

What happened?

Hi, I'm following this tutorial (https://sibiraj-s.github.io/ngx-editor/introduction/) and I do exactly what it is said

ng new editortest2 (SCSS and SSR: yes)
cd editortest2
npm install ngx-editor

Then I put import { NgxEditorModule } from 'ngx-editor'; into my component

and I add NgxEditorModule to my imports ... now the error is here.

Version

newest: "npm install ngx-editor" on ubuntu 24.04

Angular Version

newest under ubuntu 24.04

What browsers are you seeing the problem on?

Firefox

Link to reproduce

No response

Relevant log output

Unexpected token ':'

    at new AsyncFunction (<anonymous>)
    at instantiateModule (file:///home/johannes/angular/editortest2/node_modules/vite/dist/node/chunks/dep

20:12:36 [vite] Error when evaluating SSR module /main.server.mjs:
|- SyntaxError: Unexpected token ':'
    at new AsyncFunction (<anonymous>)
    at instantiateModule (file:///home/johannes/angular/editortest2/node_modules/vite/dist/node/chunks/dep-k5wXcrSr.js:54894:28)

20:12:36 [vite] Internal server error: Unexpected token ':'
      at new AsyncFunction (<anonymous>)
      at instantiateModule (file:///home/johannes/angular/editortest2/node_modules/vite/dist/node/chunks/dep-k5wXcrSr.js:54894:28)

Willing to submit a PR?

None (maybe later if I'm more advanced in angular/ts)

sibiraj-s commented 3 weeks ago

May be same as https://github.com/sibiraj-s/ngx-editor/issues/520