workspace.json problems
See original GitHub issueHi,
BUG 1: In the latest version 8 if a new Ionic app is created. Cannot start live reload due to missing angular.json file in app directory(apps/ionic-myapp). It must be created manually with separate configuration.
$ cd apps/ionic-myapp && ionic capacitor run ios --livereload --address=0.0.0.0
> ng run app:serve --host=0.0.0.0 --port=8100
[ng] The run command requires to be run in an Angular project, but a project definition could not be found.
Question 1: Also i would like to know what is purpose of renaming angular.json to workspace.json? Angular console and commands like ng xi18n stoped working because of that.
ng xi18n
The xi18n command requires to be run in an Angular project, but a project definition could not be found.
Question 2 / Bug2: If i rename workspace.json to angular.json, Angular console and commands start to work, but im getting error with xi18n
ERROR in Unexpected value 'McbIonicCoreModule in .../myapp/xplat/ionic/core/core.module.ts' imported by the module 'CoreModule in .../myapp//apps/ionic-myapp/src/app/core/core.module.ts'. Please add a @NgModule annotation.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:16 (3 by maintainers)
Top Results From Across the Web
Workspace.json file not found in latest version · Issue #10287
I am following this documentation. workspace.json file not created for both workspace command and npm-package command. So this example not ...
Read more >User and Workspace Settings - Visual Studio Code
The error can be as simple as a missing comma or incorrect setting value. Open the settings.json file with the Preferences: Open Settings...
Read more >How to access and edit settings json in vscode - YouTube
How to access and edit settings json in vscode | workspace and user settings. json file. 6.1K views 4 months ago.
Read more >Workspace json missing - Import and Export
json inside the project directory. If workspaces.json is absent or outdated, the project's import to another cryoSPARC instance will be faulty ...
Read more >nrwl NX error on generating nest library NX 'project.json' ...
Plz help.. > NX 'project.json' files are incompatible with version 1 workspace schemas. Error: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, yes i tried both NX and NG. with NX there is just info that it will forwad to angular CLI.
I noticed that problem is not related just to xi18n, but it is also impossible to run build command with --prod flag.
Im trying that on new project. Step to reproduce:
This will be solved when Nrwl merges this pr