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
Unfortunately, this import statement becomes part of the output in dist/html-index.js -- which has no obvious effect if @curveball/validator is installed, but leads to error ERR_MODULE_NOT_FOUND if it is not installed.
I believe that the "right" way of expressing import purely for side-effects on types would be
/// <reference types="@curveball/validator" />
at the start of html-index.tsx instead of the import statement; this loads the appropriate type information for type check, but without an import of @curveball/validator in the output; at least it does on my computer...
The text was updated successfully, but these errors were encountered:
html-index.tsx
has a linebrowser/src/html-index.tsx
Line 9 in 9f2245f
@curveball/validator
is a devDependency.This was introduced in 5981787, and the purpose appears to be to to modify the type of
Context
to have memberschemas
via the declaration in https://github.com/curveball/validator/blob/3259fb6ac3a7decce51307668efea9462fc3247f/src/declarations.tsUnfortunately, this import statement becomes part of the output in
dist/html-index.js
-- which has no obvious effect if@curveball/validator
is installed, but leads to error ERR_MODULE_NOT_FOUND if it is not installed.I believe that the "right" way of expressing import purely for side-effects on types would be
at the start of
html-index.tsx
instead of the import statement; this loads the appropriate type information for type check, but without an import of@curveball/validator
in the output; at least it does on my computer...The text was updated successfully, but these errors were encountered: