Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typings not working #1516

Open
TooPick opened this issue Nov 19, 2024 · 0 comments
Open

Typings not working #1516

TooPick opened this issue Nov 19, 2024 · 0 comments

Comments

@TooPick
Copy link

TooPick commented Nov 19, 2024

Hi,

I want to use your library to be able to autocomplete my interfaces in the editor.

But when I just try your example :

export class MyEditorComponent {
  codeModel: CodeModel = {
    language: 'typescript',
    uri: 'main.ts',
    value: '',
    dependencies: ['@types/node', '@ngstack/translate', '@ngstack/code-editor']
  };
}

I have an error in my console :

(index):1 Uncaught SyntaxError: Unexpected token '<' (at (index):1:1)

I don't know what is causing this. At first, I thought it was my files that was the problem, but even with your example, it's not working.

Thank you in advance.
PS: Sorry for my English, it's not my primary language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant