Error during typescript compilation #4

Open
opened 2022-01-31 06:10:23 +01:00 by nmanandhar · 4 comments
nmanandhar commented 2022-01-31 06:10:23 +01:00 (Migrated from github.com)

I am getting the following error when running npm run prepare
lib/tempview.ts:3:26 - error TS2307: Cannot find module '@codemirror/view' or its corresponding type declarations.

I think it is related to recent removal of peer dependencies for @codemirror/view and @codemirror/state, because it was working fine before that.

I am getting the following error when running npm run prepare lib/tempview.ts:3:26 - error TS2307: Cannot find module '@codemirror/view' or its corresponding type declarations. I think it is related to recent removal of peer dependencies for @codemirror/view and @codemirror/state, because it was working fine before that.
marijnh commented 2022-01-31 10:26:53 +01:00 (Migrated from github.com)

I guess you'll just have to install them manually until someone figures out how to set this up in a way that npm won't choke on.

I guess you'll just have to install them manually until someone figures out how to set this up in a way that npm won't choke on.
akramhussein commented 2022-09-03 23:59:59 +02:00 (Migrated from github.com)

Running into similar issue - when I bump the deps to latest codemirror packages the prepare script fails

Running into similar issue - when I bump the deps to latest `codemirror` packages the `prepare` script fails
Rounak-stha commented 2023-03-08 16:25:48 +01:00 (Migrated from github.com)

This issue still exists. Have anyone found any solutions?

This issue still exists. Have anyone found any solutions?
KoljaL commented 2024-02-28 10:45:59 +01:00 (Migrated from github.com)

For me this was the solution:

// tsconfig.json
    {
      "compilerOptions": {
        "moduleResolution": "node",
        ...
      }
    }
For me this was the solution: ```js // tsconfig.json { "compilerOptions": { "moduleResolution": "node", ... } } ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/buildhelper#4
No description provided.