Replies: 1 comment 1 reply
-
Not sure what would be involved specifically in supporting react native, but I have no plans to publish an officially-supported CJS variant of the package at this time given the ecosystem as a whole has generally adopted ESM at this point. That said, the only place I'm using export const initialRegistryContents = {
version: arkUtilVersion,
filename: import.meta.filename ?? globalThis.__filename ?? "unknown",
FileConstructor
} So I can try wrapping it in a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has anyone been able to get this project to run on react native? I created a project with
bun create expo
and attempted to installarktype
, but was unable to run it due to an'import.meta' is currently unsupported
error message.Similar issues have been reported with valtio and zustand.
I assume its because it is an ESM module:
![image](https://private-user-images.githubusercontent.com/42302923/407206322-78a33c01-f116-4e3f-bffe-0203a25b45d0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MTE5NjYsIm5iZiI6MTczOTQxMTY2NiwicGF0aCI6Ii80MjMwMjkyMy80MDcyMDYzMjItNzhhMzNjMDEtZjExNi00ZTNmLWJmZmUtMDIwM2EyNWI0NWQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDAxNTQyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNjNGQyZjg2YjFkYTRkNTBjMjcwNTI1NjEwYzg5ZGYwY2UwNzUzZTYyZmE2M2UwM2FiYjU1MTEyYmI4ODgxODImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ndcdjzsSsxYJ0660a-7g4VNcVFwJpXE6JA2PdYX_Hqk)
There is an ongoing thread in the expo repo about importing ESM modules. A potential solution appears to install the following babel package, but I wanted to confirm that this was the case.
If not, are there any plans to support react native?
Beta Was this translation helpful? Give feedback.
All reactions