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

Deploy react/Vite plugin ssr app on product fails since version 3.0 #13

Open
jaybe78 opened this issue Jun 8, 2022 · 1 comment
Open

Comments

@jaybe78
Copy link

jaybe78 commented Jun 8, 2022

I'm following this tutorial https://github.com/aral/vite-plugin-ssr-with-tls
npm run dev => works
npm run prod => fails with:

Module not found: Error: Can't resolve '.' in '/Users/jb/Documents/vps-webpack-5-reproduction/node_modules/@small-tech/auto-encrypt/lib/staging'
 @ ./node_modules/@small-tech/auto-encrypt/index.js 18:0-60 132:8-22
 @ ./node_modules/@small-tech/https/index.js 5:0-50 38:14-25 56:8-28
 @ ./server/index.js 8:0-37 56:32-50 56:83-101

EDIT: Did some more test, it's broken since we moved to version 3.0. Still working on 2.2

@jaybe78 jaybe78 changed the title Deploy react/Vite plugin ssr app on product fails Deploy react/Vite plugin ssr app on product fails since version 3.0 Jun 8, 2022
@jaybe78
Copy link
Author

jaybe78 commented Jul 11, 2022

could you please remove the . in https://github.com/small-tech/auto-encrypt/blob/master/lib/staging/monkeyPatchTls.js#L15

I breaks production build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant