You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey Alem 👋 , I made this re-production for the issue. so first right now, it's seems that even adding a slim regular form would cause a crypto dependency issue go to branch with-regular-form
you can see the error if you run npm run dev and refresh the page. nonetheless it does built successfully
However if you are on the main branch and try to do npm run build, it would just fail
The text was updated successfully, but these errors were encountered:
after going through this there is nothing that indicates this is an issue with remix-hook-form, the crypto package is not used, nor is anything from node, this must be caused by something else, my best guess would be that here: https://github.com/Fawwaz-2009/remix-crypto-issue/blob/main/app/actions/with-remix-hook-form.tsx#L15
you leak server only function (json) to the client bundle and that causes the crypto issue, try splitting the files up and using .server for the json utility
hey Alem 👋 , I made this re-production for the issue. so first right now, it's seems that even adding a slim regular form would cause a
crypto dependency issue
go to branchwith-regular-form
you can see the error if you run
![image](https://private-user-images.githubusercontent.com/32019791/382707248-0528a3f6-e780-4a44-80bc-59a4867b8e49.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4MTY5NjgsIm5iZiI6MTczOTgxNjY2OCwicGF0aCI6Ii8zMjAxOTc5MS8zODI3MDcyNDgtMDUyOGEzZjYtZTc4MC00YTQ0LTgwYmMtNTlhNDg2N2I4ZTQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDE4MjQyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3NzUxZGZlNDg0YzM4MWIzZDI1MGFmOGMzYTdiOTViYTZkMDc0YmNhODc1YTQ3NjEyMDhjNTNmMzUwM2IwOTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SLDW6bswaSePWtYTqSU8wOapLWUpbWd1JFtJ5eFCu1Y)
npm run dev
and refresh the page. nonetheless it does built successfullyHowever if you are on the main branch and try to do
![image](https://private-user-images.githubusercontent.com/32019791/382708873-5aa1e72f-cc88-49a5-9cb7-c0abdf58395f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4MTY5NjgsIm5iZiI6MTczOTgxNjY2OCwicGF0aCI6Ii8zMjAxOTc5MS8zODI3MDg4NzMtNWFhMWU3MmYtY2M4OC00OWE1LTljYjctYzBhYmRmNTgzOTVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDE4MjQyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwMDU5MDc4OTYyY2ZhMzRhNzIzYmM4ZWQ4ODFmYjMwZGY0MmEwMGQyM2E5OWRkZWEwZjM1ZjBmMTRiMDhjMzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.FUKd9768pgcecGBOTr6EutmxEvTKjOfHnys-YjEv-YU)
npm run build
, it would just failThe text was updated successfully, but these errors were encountered: