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
Hello! Unsure if this goes in miniflare or react-fontawesome, but since react-fontawesome works with version 2.0.0 of miniflare and fails with version 2.1.0, I am starting here.
Essentially, I have a remix project where I try adding a font awesome component to it. Immediately, it fails on load with this error:
TypeError: Cannot convert undefined or null to object
at Function.getPrototypeOf (<anonymous>)
at ordinaryHasInstance (/Users/bduffey2/projects/test-remix/node_modules/@miniflare/runner-vm/src/instanceof.ts:99:22)
at instanceOf (/Users/bduffey2/projects/test-remix/node_modules/@miniflare/runner-vm/src/instanceof.ts:114:5)
at Function.value (/Users/bduffey2/projects/test-remix/node_modules/@miniflare/runner-vm/src/instanceof.ts:139:14)
at checkPropTypes (/Users/bduffey2/projects/test-remix/node_modules/react/cjs/react.development.js:1929:13)
at validatePropTypes (/Users/bduffey2/projects/test-remix/node_modules/react/cjs/react.development.js:2136:7)
at Object.createElementWithValidation (/Users/bduffey2/projects/test-remix/node_modules/react/cjs/react.development.js:2240:5)
at Index (/Users/bduffey2/projects/test-remix/build/route-module:/Users/bduffey2/projects/test-remix/app/routes/index.tsx:7:11)
at processChild (/Users/bduffey2/projects/test-remix/node_modules/react-dom/cjs/react-dom-server.browser.development.js:3352:14)
at resolve2 (/Users/bduffey2/projects/test-remix/node_modules/react-dom/cjs/react-dom-server.browser.development.js:3269:5)
If I downgrade to miniflare 2.0.0, the error goes away and the icon shows as expected. To reproduce, you can create a new remix project with npx create-remix@latest. Then, upgrade miniflare to 2.1.0 and add the font awesome deps to your package.json with npm i --save @fortawesome/fontawesome-svg-core @fortawesome/free-regular-svg-icons @fortawesome/react-fontawesome. Finally, load any icon on the index route (such as <FontAwesomeIcon icon={faCheckCircle} />) and open the app in a browser. Let me know if I can provide more information. Thanks!
The text was updated successfully, but these errors were encountered:
Hello! Unsure if this goes in miniflare or react-fontawesome, but since react-fontawesome works with version 2.0.0 of miniflare and fails with version 2.1.0, I am starting here.
Essentially, I have a remix project where I try adding a font awesome component to it. Immediately, it fails on load with this error:
If I downgrade to miniflare 2.0.0, the error goes away and the icon shows as expected. To reproduce, you can create a new remix project with
npx create-remix@latest
. Then, upgrade miniflare to2.1.0
and add the font awesome deps to your package.json withnpm i --save @fortawesome/fontawesome-svg-core @fortawesome/free-regular-svg-icons @fortawesome/react-fontawesome
. Finally, load any icon on the index route (such as<FontAwesomeIcon icon={faCheckCircle} />
) and open the app in a browser. Let me know if I can provide more information. Thanks!The text was updated successfully, but these errors were encountered: