crutchcorn / react-native-monorepo-example

An example of a Yarn Berry monorepo with workspace and React Native support
21 stars 1 forks source link

[Error] Files not found #4

Closed Tobjoern closed 1 year ago

Tobjoern commented 1 year ago

I get the following error:

error: Error: While resolving module `@crutchcorn/shared-elements/dist/polyfills-cjs.js`, the Haste package `@crutchcorn/shared-elements` was found. However the module `dist/polyfills-cjs.js` could not be found within the package. Indeed, none of these files exist: * `C:\Users\me\turbo-plain-rn\packages\shared-elements\dist\polyfills-cjs.js(.native|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)`

I installed everything with yarn, and then executed 'yarn apps/react-native-chat-app start' and 'yarn apps/react-native-chat-app android'

crutchcorn commented 1 year ago

You need to run yarn tsc to build @crutchcorn/shared-elements first