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
I have 2 basic expo applications, one that uses an app.json file and the other uses app.config.ts, which according to Expo documentation should both be valid config file names.
When I run nx run with-json-config:start the application starts correctly, but when I run nx run with-ts-config:start I get the error message Cannot find configuration for task with-ts-config:start.
Further to this, if I run nx show project with-json-config --web I see the following list of targets
However, when I run nx show project with-ts-config --web I only see the following targets
I'm not sure how these targets get generated (they are not in the project.json file) but it looks as though they only get generated when an app.json file is present.
If I add a custom start target like below, and I run nx run with-ts-config:custom-start, then the application starts as expected.
Note: Both applications (with-json-config and with-ts-config) were created using nx g @nx/expo:application <app name>
Expected Behavior
I would expect that I should be able to start applications that use app.json and app.config.ts in the same way without having to write any extra code/configurations
I've had a read through that issue and bumped my nx version to 19.2.3 and modified my package.json but I am still getting the same issue. Is there something I am missing? I didn't quite understand the connection between these two issues.
Current Behavior
I have 2 basic expo applications, one that uses an
app.json
file and the other usesapp.config.ts
, which according to Expo documentation should both be valid config file names.When I run
nx run with-json-config:start
the application starts correctly, but when I runnx run with-ts-config:start
I get the error message Cannot find configuration for task with-ts-config:start.Further to this, if I run
nx show project with-json-config --web
I see the following list of targetsHowever, when I run
nx show project with-ts-config --web
I only see the following targetsI'm not sure how these targets get generated (they are not in the
project.json
file) but it looks as though they only get generated when anapp.json
file is present.If I add a custom start target like below, and I run
nx run with-ts-config:custom-start
, then the application starts as expected.Note: Both applications (with-json-config and with-ts-config) were created using
nx g @nx/expo:application <app name>
Expected Behavior
I would expect that I should be able to start applications that use app.json and app.config.ts in the same way without having to write any extra code/configurations
GitHub Repo
https://github.com/richmondp/nx-expo-test
Steps to Reproduce
npm install
nx run with-json-config:start
- worksnx run with-ts-config:start
- failsnx run with-ts-config:custom-start
- worksNx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
I'm not sure if this issue is related to #25291 - it looks similar but this one is related to migration.
The text was updated successfully, but these errors were encountered: