-
-
Notifications
You must be signed in to change notification settings - Fork 9
Stencil: build doesn't work on nx 15.9.x #10
Comments
I have same problem! :/ |
I get the same thing. Brand new (package-based) NX repo. And the first thing I'm trying to do is add a stencil library and I get this error! I'm running |
same issue here |
Today I have upgraded nx and I am facing the same issue. |
@marcincichocki what version were these commands working with? |
@MrGrigri Sorry I forgot to mention this in my post. This is an output of Toggle
|
@marcincichocki Nx changed something internally. The 15.7 nxext package support Nx 15.7. I hadn’t time to update everything that changed |
Yeah, it's still not working for me with |
@dgonzalezr storybook v7 works only with nrwl 15.9.x no? |
Workaround for this problem is to install Stencil directly without using the @nxext/stencil extension and to create components, use the Stencil CLI. |
Hi! @oscarcornejo do you happen to have a working example using only the Stencil CLI? |
I worked around this by changing one line in @nxext/stencil 15.7.0 using a Yarn patch. I'm using NX 15.9.2. I have been using both without issues since. I changed line 8 of const ast_utils_1 = require("@nrwl/workspace/src/utilities/ast-utils"); to const ast_utils_1 = require("@nrwl/workspace/src/utils/ast-utils"); |
Just recently tried nx and I got this issue too. And it took me a while to find out the bug being reported here. Instead of workaround shouldn't there be a good fix? Not a good experience for the first timer using Nx |
same issue here looking forward to the patch. Considering using Stencil CLI as @oscarcornejo suggests. |
How do you use that patch? It is possible also if I have been using pnpm instead of yarn? |
@erichstark I used |
Describe the bug
@nxext/stencil:build
does not work after update to nx 15.9.x. Error message is shown:Cannot find module '@nrwl/workspace/src/utilities/ast-utils'
To Reproduce
Try to build project with latest nx
Expected behavior
Executor should work as before.
Additional context
Looks like this file: https://github.com/nxext/nx-extensions/blob/main/packages/stencil/src/utils/ast-utils.ts#L4 is importing file that does not exist anymore. It was moved: https://github.com/nrwl/nx/pull/15540/files#diff-6a3ae3fda9f50d1b43708469ef9af795224222b10b7b4802b561da5529d6db12
The text was updated successfully, but these errors were encountered: