-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Impossible to build storybook of lib after upgrading to v13 (possibly wrong ts config) #7846
Comments
I can confirm the issue. Struggling with the same. |
Same here, see the logs:
Repo: https://github.com/abpframework/abp/tree/dev/npm/ng-packs |
@mehmet-erim this is not the problem I have so you might want to open an other issue. |
@VictorienTardif OK, I've created: |
Until this is resolved, a possible work around is to use a relative file path in your import statement. Nx's linting doesn't like this, however, so you'll need to disable it for that line. Here's what I had that broke with this update: import { SomeModel } from '@client/domain/models'; The work around: // eslint-disable-next-line @nrwl/nx/enforce-module-boundaries
import { SomeModel } from '../../../../../domain/models/src/index'; |
My workaround is to add this to main.js of strybook to modify webpack configuration:
|
My error looks like this when running
|
I can confirm I'm running into both the import issue and the esm issue. With my packages fully updated I get the esm, then it continues then fails with the import issue. |
I did not test yet but it should be fixed in latest Storybook release, see : storybookjs/storybook#16759 (comment) And in next Nx release: #7917 |
PR merged, so closing this! :) |
Thanks for tackling this. Everything works as expected now. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Any imported other lib with
import { x } from "@company/otherLib"
generates aModule not found: Error: Can't resolve '@company/otherLib' in currentLib/.storybook
.But it's working fine with v12.
Steps to Reproduce
I just ran
nx migrate latest
and applied migrations.Note that when applying migrations, I got a message:
I think that it could be the main problem as building after upgrading I see
Using angular project with "tsConfig:apps/public/tsconfig.app.json
and I don't seeLoading 1 config file
anymore:Before upgrading:
After upgrading:
Environment
The text was updated successfully, but these errors were encountered: