-
-
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
TypeError: Cannot add property __, object is not extensible #12853
Comments
Getting the same issue with Preact 10.5.5, TypeScript and the new JSX transform. Tried both Storybook 6.0 and 6.1 beta 1 |
Here is (part of) the Storybook webpack config, if this can help:
|
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! |
Probably a bit late now, but in case anyone else stumbles across this, you can fix this by adding the following to
|
Looks like this issue might be resolved with #12403. |
Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.3.0-alpha.9 containing PR #14555 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
I was using vite with @prefresh/vite. And it works for me
|
@lquanx in which file did you use your code? |
@mike-lischke |
I see, thanks. I don't use storybook, but thought it would help me with the same error in my vite/preact app. |
I'm trying to run a very simple story:
but it is resulting in this error:
TypeError: Cannot add property __, object is not extensible
at http://localhost:60967/vendors~main.ca482984472b487f5602.bundle.js:58056:1687
at x (http://localhost:60967/vendors~main.ca482984472b487f5602.bundle.js:58056:2709)
at x (http://localhost:60967/vendors~main.ca482984472b487f5602.bundle.js:58056:2683)
at b (http://localhost:60967/vendors~main.ca482984472b487f5602.bundle.js:58056:1648)
at A (http://localhost:60967/vendors~main.ca482984472b487f5602.bundle.js:58056:5639)
at Module.H (http://localhost:60967/vendors~main.ca482984472b487f5602.bundle.js:58056:7529)
at preactRender (http://localhost:60967/vendors~main.ca482984472b487f5602.bundle.js:35754:12)
at StoryRenderer.renderMain [as render] (http://localhost:60967/vendors~main.ca482984472b487f5602.bundle.js:35780:3)
at _callee$ (http://localhost:60967/vendors~main.ca482984472b487f5602.bundle.js:27654:33)
at tryCatch (http://localhost:60967/vendors~main.ca482984472b487f5602.bundle.js:85761:40)
main.js:
Storybook 6.0.26
we use:
"preact": "^10.3.4"
and
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-decorators": "^7.0.0",
"@babel/plugin-proposal-do-expressions": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-bind": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.12.1",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
"@babel/plugin-proposal-numeric-separator": "^7.12.1",
"@babel/plugin-proposal-optional-chaining": "^7.12.1",
"@babel/plugin-proposal-pipeline-operator": "^7.12.1",
"@babel/plugin-proposal-private-methods": "^7.12.1",
"@babel/plugin-proposal-private-property-in-object": "^7.12.1",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.1",
"@babel/runtime": "^7.12.1",
"@storybook/preact": "^6.0.26",
"babel-loader": "^8.1.0",
"babel-plugin-module-resolver": "^3.1.1",
"chromedriver": "^2.44.0",
"compression-webpack-plugin": "^3.1.0",
"cors": "^2.8.4",
"css-loader": "^3.4.2",
"file-loader": "^3.0.1",
"grunt": "^1.0.4",
"grunt-contrib-cssmin": "^3.0.0",
"grunt-contrib-less": "^1.2.0",
"grunt-contrib-watch": "^1.1.0",
"husky": "^4.0.7",
"mini-css-extract-plugin": "^0.5.0",
"purgecss-webpack-plugin": "^1.4.0",
"react-hot-loader": "^3.0.0",
"react-snap": "^1.23.0",
"style-loader": "^0.13.1",
"sw-precache-webpack-plugin": "^0.11.5",
"test-recorder": "^0.4.2",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^4.29.2",
"webpack-bundle-analyzer": "^3.7.0",
"webpack-cli": "^3.3.12",
"webpack-deep-scope-plugin": "^1.6.2",
"webpack-dev-server": "^3.11.0",
"workbox-webpack-plugin": "^3.4.1"
}
Any idea how I can approach it?
The text was updated successfully, but these errors were encountered: