rmwc: Missing TypeScript definitions for dependencies
-
What RMWC Version are you using [major.minor.patch]: 6.0.12
-
Name your build system [Webpack, Rollup…]: Webpack
-
Describe the bug with as much detail as possible:
This is a weird one. For some reason, I am getting a couple of errors related to third-party type definitions:
ERROR in [at-loader] ./node_modules/@rmwc/base/dist/utils/data-table-context.d.ts:2:23
TS2688: Cannot find type definition file for '@emotion/core'.
ERROR in [at-loader] ./node_modules/@rmwc/base/dist/foundation-component.d.ts:2:23
TS2688: Cannot find type definition file for '@emotion/core'.
ERROR in [at-loader] ./node_modules/@rmwc/base/dist/index.d.ts:2:39
TS7016: Could not find a declaration file for module 'classnames'. '/home/dawsonc623/projects/elyctech/sword-of/packages/sword-of-editor/node_modules/classnames/index.js' implicitly has an 'any' type.
Try `npm install @types/classnames` if it exists or add a new declaration (.d.ts) file containing `declare module 'classnames';`
This is the first time I have seen a type issue come up with third-party types, so I am kind of at a loss for how to help on this one. This is occurring on my Sword Of project again: https://github.com/elyctech/sword-of/tree/problematic-code
If you need to get the project running:
git clone https://github.com/elyctech/sword-of -b problematic-code
cd sword-of/packages/sword-of-engine
yarn
yarn build
yarn link
cd ../sword-of-editor
yarn
yarn link sword-of-engine
yarn start-dev
webpack-dev-server will run on http://localhost:8080 (technically http://0.0.0.0:8080, but localhost is the easiest way to get to it).
Note: There were a couple of unrelated build issues that for whatever reason did not present themselves until I did a fresh pull of the repository. Sorry if you tried to look at this branch before and could not get it running. I tested these steps, so I know they work from a fresh installation.
- What happened, and what was supposed to happen:
The build failed with the above errors. It should have succeeded. I am not sure why it failed though, so I cannot provide much more insight. I will keep digging and see what I can find on my end.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (2 by maintainers)
@jamesmfriedman I seem to still get this for @rmwc/toggleable
Are you able to have a look?