-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Ember: Module not found: Error: Can't resolve 'fs' in monorepo #9712
Comments
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Facing this issue. Any solutions? I'm using |
Ember and monorepo support is coming with |
But this works in 5.3.18 as well. https://github.com/storybookjs/storybook/tree/v5.3.18/examples/ember-cli/
I am surely missing something because everything works in the example repo |
The storybook examples:
I'm not sure here, but I use it with addons and |
Still the same error. However I got the issue. It gets transpiled to var ToStorybook = function ToStorybook() {
return {
template: Object(ember_cli_htmlbars__WEBPACK_IMPORTED_MODULE_3__["hbs"])(_templateObject()),
context: {
onClick: Object(_storybook_addon_links__WEBPACK_IMPORTED_MODULE_4__["linkTo"])('Button')
}
};
};
|
This is related to storybookjs/ember-cli-storybook#20 Not sure what to do further |
When using the new import module:
import { hbs } from 'ember-cli-htmlbars;'
it will fail when used in a monorepo. The upgrade was introduced with this PR: #9633In short:
v5.3.10
-import { hbs } from 'ember-cli-htmlbars;'
works, when the storyfile is in the same directory as the sb projectv6
- the above also works when the story is in another folderReproduction
https://github.com/gossi/hokulea - Check out run
ember serve
in the/explorer
dir andyarn storybook
parallel to (I run them in parallel atm)If you move
/explorer/stories/button.js
to/components/buttons/addon/components/button/story.js
it will fail when you execute the commands aboveAnalysis
My suggestion here is, that v6 has some changes that made it work with monorepos but that didn't got cherry-picked for 5.3.
Risk Assessment
At the moment, this is not a risk as this wasn't working before with the old syntax either.
The text was updated successfully, but these errors were encountered: