Open nhhockeyplayer opened 2 years ago
I can confirm this issue with @nxtend/ionic-react too. I think the problem in @nxtend/capacitor package in projectRoot
in node_modules\@nxtend\capacitor\src\generators\capacitor-project\lib\normalize-options.js
.
I tried to change the value of projectRoot
manually by adding || "";
const projectRoot = (0, devkit_1.readProjectConfiguration)(host, options.project).root || "";
then run this command to create a new app
nx generate @nxtend/ionic-react:application appName
and it worked!
after that I added a capacitor.config.json
file to my app
{
"appId": "io.ionic.appname",
"appName": "app-name",
"webDir": "../../dist/packages/app-name",
"bundledWebRuntime": "false"
}
NOTE: this is not fixing the issue but I hope it'll help to fix it as soon as possible.
this appears to be taking out nxpm as well... nxpm is a wrapper to plugins https://github.com/nxpm/nxpm-cli/issues/20
Thanks for quick response... how can I get those changes is there a new release? I tried
"@capacitor/cli": "^4.0.0-alpha.2",
"@capacitor/core": "^4.0.0-alpha.2",
still no remedy
These plugins are moving over to the Nxext repo, and an Nx 14 version has been released that may resolve this issue. There are some migration guides on their docs site, here's a link to the Ionic Angular guide: https://nxext.dev/docs/ionic-angular/migrating-from-nxtend.html
thanks for any assist
Im happy to troubleshoot for any feedback
environment
node
ng