You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using remirror in a typescript project. When I build this project with tsc, I get the following error:
$ tsc
node_modules/remirror/dist/declarations/src/index.d.ts:1:38 - error TS2307: Cannot find module 'json.macro/types' or its corresponding type declarations.
1 import type { SemanticVersion } from 'json.macro/types';
~~~~~~~~~~~~~~~~~~
We use the npm package json.macro to read the package.json at the build time, and that's why we only add this package in devDependencies.
Steps to reproduce
N/A
Expected results
Not error.
Actual results
Got error bacause tsc can't find json.macro in the node_modules.
Possible Solution
Copy the type from json.macro into the remirror repo.
The text was updated successfully, but these errors were encountered:
Summary
I'm using remirror in a typescript project. When I build this project with
tsc
, I get the following error:We use the npm package
json.macro
to read thepackage.json
at the build time, and that's why we only add this package indevDependencies
.Steps to reproduce
N/A
Expected results
Not error.
Actual results
Got error bacause
tsc
can't findjson.macro
in thenode_modules
.Possible Solution
Copy the type from
json.macro
into the remirror repo.The text was updated successfully, but these errors were encountered: