Skip to content

[Expo 51 SDK] Cannot access 'colorKitUI' before initialization on Expo SDK Web #80

@kennethstarkrl

Description

@kennethstarkrl

Description

When trying to use the color picker with Expo SDK 51 the following error occurs. This issue only occurs on Web. I can confirm it doesn't happen on Android, not sure about iOS.

Static Rendering Error (Node.js)
Cannot access 'colorKitUI' before initialization
Call Stack
factory
node_modules/reanimated-color-picker/lib/commonjs/colorKit/index.js
loadModuleImplementation
node_modules/metro-runtime/src/polyfills/require.js
guardedLoadModule
node_modules/metro-runtime/src/polyfills/require.js
require
node_modules/metro-runtime/src/polyfills/require.js
factory
node_modules/reanimated-color-picker/lib/commonjs/ColorPicker.js
loadModuleImplementation
node_modules/metro-runtime/src/polyfills/require.js
guardedLoadModule
node_modules/metro-runtime/src/polyfills/require.js
require
node_modules/metro-runtime/src/polyfills/require.js
factory
node_modules/reanimated-color-picker/lib/commonjs/index.js
loadModuleImplementation
node_modules/metro-runtime/src/polyfills/require.js

Steps to reproduce

Create a bare Expo SDK 51 project and import reanimated-color-picker

Snack or a link to a repository

No response

Reanimated Color Picker version

3.0.3

React Native version

0.74.1

React Native Reanimated version

3.10.1

React Native Gesture Handler version

2.16.1

Platforms

Web

JavaScript runtime

Hermes

Workflow

Expo bare workflow

Architecture

Paper (Old Architecture)

Build type

Debug mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions