Build Production test project #793
-
Hello i'm missing in the production phase i can't load certain modules and use the suitable target for the build the app is in express node part-regex e react-flatpickr do i need to create a rollup? if so how should i do? comand "server": "cross-env NODE_ENV=production vite build && cross-env NODE_ENV=production ts-node-dev ./server" ` if (!partRegex TypeError: partRegex is not a function ` import Flatpickr from 'react-flatpickr' TypeError: e is not a function ` ` import { defineConfig } from 'vite' export default defineConfig({ ` ` /Users/enri/Code/Progetti/vite/crm-vite/urql/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:362 ` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Some of it seem to be user land problems and some of it may be related to https://vite-plugin-ssr.com/common-issues#libraries-containing-invalid-esm. |
Beta Was this translation helpful? Give feedback.
Some of it seem to be user land problems and some of it may be related to https://vite-plugin-ssr.com/common-issues#libraries-containing-invalid-esm.