Bug: Could not resolve "prop-types"

#23 · closed · 1 comments

View on GitHub ↗

willin

```js ❯ yarn dev yarn run v1.22.17 $ pm2-dev ./pm2.config.js --env development =============================================================================== --- PM2 development mode ------------------------------------------------------ Apps started : Remix,Tailwind CSS,Cloudflare Wrangler Processes started : 3 Watch and Restart : Enabled Ignored folder : node_modules =============================================================================== Remix-0 | Watching Remix app in development mode... Remix-0 | > node_modules/@mdi/react/Icon.js:1:965: error: Could not resolve "prop-types" (mark it as external to exclude it from the bundle, or surround it with try/catch to handle the failure at run-time) Remix-0 | 1 │ ...ion(e,t){e.exports=require("prop-types")},function(e,t){e.exports=... Remix-0 | ╵ ~~~~~~~~~~~~ Remix-0 | Remix-0 | Build failed with 1 error: Remix-0 | node_modules/@mdi/react/Icon.js:1:965: error: Could not resolve "prop-types" (mark it as external to exclude it from the bundle, or surround it with try/catch to handle the failure at run-time) Remix-0 | 💿 Built in 181ms ``` even after i install `prop-types` manually, it still cannot work properly. using latest version of: - @mdi/js - @mdi/react

Comments

Templarian

Learn more... https://github.com/Templarian/MaterialDesign-React/pull/65