Skip to content

TypeError: element.setAttribute is not a function #395

@clayrisser

Description

@clayrisser

Describe the bug
I get TypeError: element.setAttribute is not a function when using @storybook/react-native version 6.0.1-beta.9. The error goes away when I downgrade to version 6.0.1-beta.8.

To Reproduce
Steps to reproduce the behavior:
Upgrade to @storybook/react-native version 6.0.1-beta.9

Expected behavior
App should load with no errors

Screenshots
2022-11-11-061845_screenshot

System:
Environment Info:

System:
OS: Linux 6.0 Debian GNU/Linux bookworm/sid
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Binaries:
Node: 16.18.0 - ~/.nvm/versions/node/v16.18.0/bin/node
Yarn: 3.1.0 - ~/.nvm/versions/node/v16.18.0/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm
Browsers:
Chrome: 107.0.5304.110
Firefox: 106.0.5

Additional context

TypeError: element.setAttribute is not a function
reactConsoleErrorHandler @ ExceptionsManager.js:151
registerError @ LogBox.js:187
console.error @ LogBox.js:67
overrideMethod @ backend.js:2082
reportException @ ExceptionsManager.js:95
handleException @ ExceptionsManager.js:141
handleError @ setUpErrorHandling.js:24
errorHandler @ DevLauncherErrorManager.js:46
(anonymous) @ DevLauncherErrorManager.js:51
errorHandler @ DevLauncherErrorManager.js:46
(anonymous) @ DevLauncherErrorManager.js:51
errorHandler @ ExpoErrorManager.js:25
(anonymous) @ ExpoErrorManager.js:30
reportFatalError @ error-guard.js:49
guardedLoadModule @ require.js:237
metroRequire @ require.js:131
(anonymous) @ index.tsx:31
executeApplicationScript @ RNDebuggerWorker.js:formatted:7892
(anonymous) @ RNDebuggerWorker.js:formatted:7923

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions