nxext / nx-extensions

Nx Extension for StencilJs, SvelteJS, SolidJS, Ionic and VueJs
MIT License
454 stars 99 forks source link

Stencil: Cannot find module '@nrwl/workspace/src/utilities/ast-utils' #939

Closed nathan2slime closed 1 year ago

nathan2slime commented 1 year ago

Describe the bug

When trying to generate a stencil library, it returns the following error

Cannot find module '@nrwl/workspace/src/utilities/ast-utils'

To Reproduce

  1. Create a base monorepo using nx

    yarn create nx-workspace app
  2. Add the manager as specified in the documentation in the installation step

yarn add @nxext/stencil -D
  1. Try to generate a stencil library as specified in the documentation
yarn nx g @nxext/stencil:library core

Expected behavior It should generate a stencil component library

Additional context If it is a compatibility issue with nx versions, please specify which dependencies are compatible, below is my package.json

package.json

{
  "name": "example",
  "version": "0.0.0",
  "license": "MIT",
  "private": true,
  "devDependencies": {
    "@nrwl/workspace": "^16.1.2",
    "nx": "16.1.2",
    "nx-cloud": "latest",
    "typescript": "^5.0.4"
  },
  "workspaces": [
    "packages/*"
  ],
  "dependencies": {
    "@nxext/stencil": "^15.7.0"
  }
}

Logs

Captura de tela 2023-05-08 165214

matsgottenbos commented 1 year ago

This seems like a duplicate of nxext/nx-extensions-ionic#10. See my comment there for a pretty simple workaround: https://github.com/nxext/nx-extensions-ionic/issues/10