Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stencil: Adding output target type Angular leads to an exception #1066

Open
lehmamic opened this issue Jan 26, 2024 · 2 comments
Open

Stencil: Adding output target type Angular leads to an exception #1066

lehmamic opened this issue Jan 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lehmamic
Copy link

Describe the bug

When I trie to use the add-outputtarget generator to create an angular wrapper it throws an exception.

Error: ENOENT: no such file or directory, open '/Users/leh/Data/misc/stencil-test/libs/web-components-angular/src/lib/web-components-angular.module.ts'
    at Object.openSync (node:fs:581:18)
    at readFileSync (node:fs:460:35)
    at FsTree.fsReadFile (/Users/leh/Data/misc/stencil-test/node_modules/nx/src/generators/tree.js:240:44)
    at FsTree.read (/Users/leh/Data/misc/stencil-test/node_modules/nx/src/generators/tree.js:31:32)
    at addLibraryDirectives (/Users/leh/Data/misc/stencil-test/node_modules/@nxext/stencil/src/generators/add-outputtarget/add-angular/generator.js:59:29)
    at /Users/leh/Data/misc/stencil-test/node_modules/@nxext/stencil/src/generators/add-outputtarget/add-angular/generator.js:73:9
    at Generator.next (<anonymous>)
    at fulfilled (/Users/leh/Data/misc/stencil-test/node_modules/tslib/tslib.js:166:62)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

To Reproduce

Given: An nx workspace >v17 with a stencil project.
Execute: nx g @nxext/stencil:add-outputtarget web-components --outputType angular --importPath @my-lib/components/angular --publishable --verbose

Expected behavior

It generates the angular wrapper library

Additional context

It seems that the angular module file in the library is expected but the new angular library generator will generate a standalone components library by default which does not create a module file anymore.

@lehmamic lehmamic added the bug Something isn't working label Jan 26, 2024
@Jhonnathan-Medina
Copy link

I have the same issue

@vrxj81
Copy link

vrxj81 commented Apr 10, 2024

there's a PR for this, hang on...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants