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've been trying to get Momentum Trail working but I keep getting the follow error:
Could not find a declaration file for module 'momentum-trail'. '[..]/node_modules/momentum-trail/dist/momentum-trail.js' implicitly has an 'any' type. There are types at '[..]/node_modules/momentum-trail/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'momentum-trail' library may need to update its package.json or typings.ts(7016)
While looking for a fix I see a couple of packages with this problem. I temporarily fixed it by adding a types/momentum-trail.d.ts with declare module 'momentum-trail'; as its content.
Problem with this is that it works locally, but when deploying it will error out.
A fix for that I read is to set the following in my jsconfig.json but that looks like a very nasty workaround that could have some other implications.
"compilerOptions": {
"noImplicitAny": false
}
Can you fix this problem on your end, or at least document how to best go about this on the frontend for Vue 3 in the docs?
The text was updated successfully, but these errors were encountered:
I've been trying to get Momentum Trail working but I keep getting the follow error:
Could not find a declaration file for module 'momentum-trail'. '[..]/node_modules/momentum-trail/dist/momentum-trail.js' implicitly has an 'any' type. There are types at '[..]/node_modules/momentum-trail/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'momentum-trail' library may need to update its package.json or typings.ts(7016)
While looking for a fix I see a couple of packages with this problem. I temporarily fixed it by adding a
types/momentum-trail.d.ts
withdeclare module 'momentum-trail';
as its content.Problem with this is that it works locally, but when deploying it will error out.
A fix for that I read is to set the following in my
jsconfig.json
but that looks like a very nasty workaround that could have some other implications.Can you fix this problem on your end, or at least document how to best go about this on the frontend for Vue 3 in the docs?
The text was updated successfully, but these errors were encountered: