Closed zRelux closed 1 week ago
Hi,
Does the config work for you just fine when working with expo cli?
Yes I had faced no issues when trying to develop locally, I only noticed when our CI started to fail. To notice that with commonjs imports seems to work, but other issue arise
Just bumped into the same issue, trying to import a ts file which has import won't work and gives the error Cannot use import statement outside a module
and the trace shows the cjs loader doing its thing. Shouldn't this file and import first be resolved by typescript?
P.S. Not experiencing this with eas cli but local expo server.
Any fixes to this problem?
Do you use ts-node? I also first missed that in the docs.
Nice this helped fix our issues
I'm using ts-node but still not being able to import expo-updates, I'm having the following error when doing import * as Updates from "expo-updates"
:
SyntaxError: Error reading Expo config at /Users/nacho/Programming/Barkbus/apps/expo-groomers/app.config.ts:
Unexpected token 'export' /.../node_modules/expo-updates/build/index.js:1 export * from './Updates'; ^^^^^^
Build/Submit details page URL
No response
Summary
I was trying to cleanup my config, and doing so I had created a config folder with some TS files. I tried to import them in the app.config but I started getting weird error
Managed or bare?
bare
Environment
Error output
Error reading Expo config at /Users/relux/Documents/Discovertsy/app/app.config.ts:
Unexpected token 'export' /Users/relux/Documents/Discovertsy/app/test.ts:5 export default config;
Reproducible demo or steps to reproduce from a blank project
app.config.ts
test.ts