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
Unable to launch following install instructions #21
Comments
@michaeltford I am getting the same exact issue when running Storybook 6.5.14. Or, if I have not built yet and am trying to build with a test Playground component, I also get this message "Field 'browser' doesn't contain a valid alias configuration" along with a number of node_modules/@babel/plugin-syntax-unicode-sets-regex doesn't exist errors. Any ideas @JeremyRH ? |
Thanks @svanetten1976 . I am not new to development and I spent several hours with no luck. I also tried in sb 7.1alpha with fresh download. This component looks so awesome. It has something to do with babel standalone needed for monaco but sb is include/mapping. |
Thanks for reporting, I'll take a look at this soon. |
@michaeltford @JeremyRH I actually just solved the issue, figured out what I needed to do anyways with my configuration. This is the magic line, maybe this is something you want to add : This is in storybook/main.ts in my case, here is the full webpackFinal function (there is some other stuff in there very specific to the app I am working on but that is the magic line that fixed stuff for me):
|
@svanetten1976, very nice job! I thought about an alias but I thought there might be a ton more. I will try this patch tomorrow and thanks. @JeremyRH do you think this is a storybook issue or a monaco issue? I didn't see anything in your codebase that looked like it would cause this. |
require("@babel/plugin-syntax-unicode-sets-regex") but it does not have EDIT: Looks like this might be related: babel/babel#15636 |
This was fixed on babel's side: https://github.com/babel/babel/pull/15675/files |
I get the following error when trying to load. Am I missing something obvious? I appears to be a babel related issue.
ModuleNotFoundError: Module not found: Error: Can't resolve '@babel/plugin-syntax-unicode-sets-regex' in 'C:\dev\sheetxl\node_modules@babel\standalone'.
When trying to troubleshoot I downloaded the source and tried to run the example (I am on a windows 11 box). I get the following error
Cannot find module './dist/cjs/preset'
The text was updated successfully, but these errors were encountered: