Skip to content
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

tailwindcss(android) rebuilding... TypeError: style.declarations.findLast is not a function #298

Closed
coderDancer opened this issue Apr 4, 2024 · 2 comments
Assignees

Comments

@coderDancer
Copy link

Summary:

image

Steps to reproduce:

tailwindcss(android) rebuilding... TypeError: style.declarations.findLast is not a function
at setStyleForSelectorList (/Users/william/Documents/code/reference/react-native-template-obytes/node_modules/react-native-css-interop/src/css-to-rn/index.ts:358:54)
at extractRule (/Users/william/Documents/code/reference/react-native-template-obytes/node_modules/react-native-css-interop/src/css-to-rn/index.ts:175:11)
at Rule (/Users/william/Documents/code/reference/react-native-template-obytes/node_modules/react-native-css-interop/src/css-to-rn/index.ts:82:9)
at cssToReactNativeRuntime (/Users/william/Documents/code/reference/react-native-template-obytes/node_modules/react-native-css-interop/src/css-to-rn/index.ts:76:15)
at sendUpdate (/Users/william/Documents/code/reference/react-native-template-obytes/node_modules/react-native-css-interop/src/metro/poll-updates-server.ts:49:42)
at Socket. (/Users/william/Documents/code/reference/react-native-template-obytes/node_modules/nativewind/src/metro/tailwind-cli.ts:106:17)
at Socket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)

Expected behavior:

first,this route - /Users/william/Documents/code/reference/react-native-template-obytes/node_modules/react-native-css-interop/src/css-to-rn/index.ts:358:54) is not exist
I try update tailwindcss@3.3.3,can't solve this problem

what sholud I do?

@eYdr1en
Copy link

eYdr1en commented Apr 7, 2024

You need to use node version 18 or above. Here is the issue in nativewind nativewind/nativewind#800

@coderDancer
Copy link
Author

You need to use node version 18 or above. Here is the issue in nativewind marklawlor/nativewind#800

wow,it solved my problem
Node version 18 or above
Thanks

@yjose yjose closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants