Skip to content

Typings not working #1516

Open
Open
@TooPick

Description

@TooPick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions