Git Product home page Git Product logo

pnpm-expo-42's Introduction

PNPM + Expo 42

Monorepo reproducing weird asset errors between expo / metro / pnpm

versions of stack:

pnpm: latest
expo: 42
expo-cli: 4.8.1
metro: 0.58 (0.59 has same issues, later versions beyon didn't seem to work)

First install PNPM:

npm i -g pnpm
yarn add --global pnpm

Then install the dependencies in this workspace

pnpm install

Finally start the application:

pnpm start --filter mobile-app

The application can successfully boot, but Expo/Metro can't seem to serve our custom fonts...

A few things to note:

[Unhandled promise rejection: Error: Downloaded file for asset 'babysweet.ttf' Located at http://10.103.48.232:19000/assets/assets/fonts/babysweet.ttf?platform=ios&hash=5751ffa9c86291f684a5d30b67814476?platform=ios&dev=true&hot=false&minify=false failed MD5 integrity check]
at node_modules/expo-asset/build/PlatformUtils.js:53:18 in _downloadAsyncManagedEnv
at [native code]:null in flushedQueue
at [native code]:null in invokeCallbackAndReturnFlushedQueue

preview

Maybe related: pnpm/pnpm#3321

pnpm-expo-42's People

Contributors

hanford avatar

Stargazers

Eliud Obure avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.