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
After fighting with rollup's confusion over CommonJS versus Node ES modules for a while, I tried to write rollup's configuration file in typescript. I got blocked by the fact that @open-wc/building-rollup doesn't provide a declaration file.
rollup.config.ts:2:35 - error TS7016: Could not find a declaration file for module '@open-wc/building-rollup'. '/Users/luke/src/EvonyTKRTips/node_modules/.pnpm/@[email protected][email protected]/node_modules/@open-wc/building-rollup/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/open-wc__building-rollup` if it exists or add a new declaration (.d.ts) file containing `declare module '@open-wc/building-rollup';`
2 import { createBasicConfig } from '@open-wc/building-rollup';
~~~~~~~~~~~~~~~~~~~~~~~~~~
and my attempt at installing it
pnpm i --save-dev @types/open-wc__building-rollup
ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/@types%2Fopen-wc__building-rollup: Not Found - 404
This error happened while installing a direct dependency of /Users/luke/src/EvonyTKRTips/packages/web
@types/open-wc__building-rollup is not in the npm registry, or you have no permission to fetch it.
No authorization header was set for the request.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After fighting with rollup's confusion over CommonJS versus Node ES modules for a while, I tried to write rollup's configuration file in typescript. I got blocked by the fact that @open-wc/building-rollup doesn't provide a declaration file.
and my attempt at installing it
Beta Was this translation helpful? Give feedback.
All reactions