-
Notifications
You must be signed in to change notification settings - Fork 10
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
Compilation error "JavaScript parsing error: Expected ';', got 'assert'" #42
Comments
Rspack does not support the import attributes syntax yet, you can remove the Related issue: web-infra-dev/rspack#4358 |
Thx for you quick answer, but I've checked carefully and actually I don't have this syntax in my code. |
It might be introduced in third party dependency. I checked the code in storybook-rsbuild and did not find the code. You could search the |
Ah thx, gotcha I've found it |
I don't think the code can be removed from the third party addon, see JesusTheHun/storybook-addon-remix-react-router#68 Do you think of any mean to transfrom this code with rsbuild to remove this assertion ? |
Try compiling the |
Thx a lot @fi3ework ! ❤️ Indeed, it works fine with the following configuration : rsbuildFinal: (config) => {
return mergeRsbuildConfig(config, {
source: {
include: [
/node_modules[\\/]storybook-addon-remix-react-router[\\/]dist[\\/]index.js/
]
}
})
}, |
I try to migrate from storybook/vite to storybook with rsbuild but I have a compilation error :
cross-env NODE_OPTIONS=--max-old-space-size=8192 storybook dev -p 6006
excerp of package.json :
storybook/main.ts
rsbuild config :
The text was updated successfully, but these errors were encountered: