wonchwonch Posted November 12, 2019 Share Posted November 12, 2019 (edited) I'm trying to use this tool: http://pixijs.io/customize/But I'm having troubles with getting the types to be imported. Could not find a declaration file for module '@pixi/constants'. '.../node_modules/@pixi/constants/lib/constants.js' implicitly has an 'any' type. Try `npm install @types/pixi__constants` if it exists or add a new declaration (.d.ts) file containing `declare module '@pixi/constants';`ts(7016) Does anyone know how to solve this? I know that in the main pixi.js import, the types are already there. I followed the tool and did this to get the modules: npm install @pixi/constants @pixi/core @pixi/display @pixi/math @pixi/runner @pixi/settings @pixi/ticker @pixi/utils Edited November 12, 2019 by wonchwonch Quote Link to comment Share on other sites More sharing options...
bigtimebuddy Posted November 12, 2019 Share Posted November 12, 2019 Please see this related issue: https://github.com/pixijs/pixi.js/issues/6016 We are in the process of generating typings for all packages. Until then, that issue contains a workaround for hooking up sub-package typings. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.