Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

"yarn native" command throws error on "@my/ui" #49

Closed
synnksou opened this issue May 7, 2022 · 2 comments
Closed

"yarn native" command throws error on "@my/ui" #49

synnksou opened this issue May 7, 2022 · 2 comments

Comments

@synnksou
Copy link

synnksou commented May 7, 2022

Hello 馃憢,

I have set up the starter template using "npx create-tamagui-app@latest".

After launch "yarn native" and connect my ios device, i got this error

Tamagui error loading file:

    @my/ui

Cannot find module '/Users/antoine/Documents/projet-perso/test-tamagui/node_modules/@my/ui/dist/cjs'. Please verify that the package.json has a valid "main" entry
Error: Cannot find module '/Users/antoine/Documents/projet-perso/test-tamagui/node_modules/@my/ui/dist/cjs'. Please verify that the package.json has a valid "main" entry
    at tryPackage (node:internal/modules/cjs/loader:353:19)
    at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at Module.Mod.require (/Users/antoine/Documents/projet-perso/test-tamagui/node_modules/@tamagui/static/dist/cjs/extractor/loadTamagui.js:56:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (/Users/antoine/Documents/projet-perso/test-tamagui/packages/app/tamagui.config.ts:3:45)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Module._compile (/Users/antoine/Documents/projet-perso/test-tamagui/node_modules/esbuild-register/dist/node.js:2258:26)

iOS Bundling failed 6750ms
index.js: Call retries were exceeded
@cmaycumber
Copy link

I think this happens when you haven't built the UI package because it can't resolve the path dist/cjs.

After building this was solved for me; I did run web, however.

@natew
Copy link
Member

natew commented May 9, 2022

Oh yea you'll need to run yarn watch alongside your other commands. I should document this...

@natew natew closed this as completed May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants