Skip to content

TypeError: can't access property "color"Β #28

@tomByrer

Description

@tomByrer

Win10, both Expo targeting web & Next.js with React-Native-Web won't run your library. I used only the demo you have in README.

Unhandled Runtime Error

TypeError: can't access property "color", topLevel is undefined
Call Stack
generateNewStylesheet/<
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/webpack/pages/index.970e49074bdcb60232d4.hot-update.js (24175:9)
generateNewStylesheet
/_next/static/webpack/pages/index.970e49074bdcb60232d4.hot-update.js (24174:30)
NativeSyntaxHighlighter
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/webpack/pages/index.970e49074bdcb60232d4.hot-update.js (24284:52)
renderWithHooks
/_next/static/chunks/main.js (31890:27)
mountIndeterminateComponent
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/chunks/main.js (34569:13)
beginWork
/_next/static/chunks/main.js (35683:16)
callCallback
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/chunks/main.js (17275:14)
invokeGuardedCallbackDev
/_next/static/chunks/main.js (17324:16)
invokeGuardedCallback
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/chunks/main.js (17379:31)
beginWork$1
/_next/static/chunks/main.js (40290:28)
performUnitOfWork
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/chunks/main.js (39241:12)
workLoopSync
/_next/static/chunks/main.js (39217:22)
performSyncWorkOnRoot
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/chunks/main.js (38843:9)
flushSyncCallbackQueueImpl/<
/_next/static/chunks/main.js (28176:24)
unstable_runWithPriority
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/chunks/main.js (46080:12)
runWithPriority$1
/_next/static/chunks/main.js (28126:10)
flushSyncCallbackQueueImpl
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/chunks/main.js (28171:24)
flushSyncCallbackQueue
/_next/static/chunks/main.js (28159:3)
flushSync
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/chunks/main.js (39019:5)
scheduleRefresh
/_next/static/chunks/main.js (28713:14)
performReactRefresh/<
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/chunks/react-refresh.js (507:17)
performReactRefresh
/_next/static/chunks/react-refresh.js (496:26)
scheduleUpdate/<
file:/D:/doc/prog/learn/js/react/reactnative/test-highlight-nextjs/.next/static/chunks/react-refresh.js (135:35)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions