Open GustavoMelloGit opened 12 hours ago
This is an issue with Vite's dependency Rollup, running npm install -D rollup@4.22.0
or add overrides to package.json
resolves the problem while the library doesn't fix the error:
"overrides": {
"rollup": "4.22.0"
},
Link to the issue https://github.com/rollup/rollup/issues/5672.
Describe the bug
Everytime i run npm run build i am receving the following error and i don't know what to do. It happens locally and also on aws amplify. We did not change anything really for it to start happening.
Reproduction
none
Steps to reproduce
npm i => npm run build
System Info
Used Package Manager
npm
Logs
Click to expand!
```shell vite:config bundled config file loaded in 38.90ms +0ms vite:config using resolved config: { vite:config base: '/', vite:config plugins: [ vite:config 'vite:build-metadata', vite:config 'vite:watch-package-data', vite:config 'vite:pre-alias', vite:config 'alias', vite:config 'vite:react-babel', vite:config 'vite:react-refresh', vite:config 'vite-tsconfig-paths', vite:config 'vite:modulepreload-polyfill', vite:config 'vite:resolve', vite:config 'vite:html-inline-proxy', vite:config 'vite:css', vite:config 'vite:esbuild', vite:config 'vite:json', vite:config 'vite:wasm-helper', vite:config 'vite:worker', vite:config 'vite:asset', vite:config 'vite-plugin-node-polyfills', vite:config 'vite:wasm-fallback', vite:config 'vite:define', vite:config 'vite:css-post', vite:config 'vite:build-html', vite:config 'vite:worker-import-meta-url', vite:config 'vite:asset-import-meta-url', vite:config 'vite:force-systemjs-wrap-complete', vite:config 'commonjs', vite:config 'vite:data-uri', vite:config 'inject', vite:config 'vite:dynamic-import-vars', vite:config 'vite:import-glob', vite:config 'vite:build-import-analysis', vite:config 'vite:esbuild-transpile', vite:config 'vite:terser', vite:config 'vite:reporter', vite:config 'vite:load-fallback' vite:config ], vite:config publicDir: '/Users/gustavo/Documents/Nuvidio/companyV2/public', vite:config server: { vite:config preTransformRequests: true, vite:config open: true, vite:config port: 4020, vite:config sourcemapIgnoreList: [Function: isInNodeModules$1], vite:config middlewareMode: false, vite:config fs: { vite:config strict: true, vite:config allow: [Array], vite:config deny: [Array], vite:config cachedChecks: undefined vite:config } vite:config }, vite:config css: { preprocessorOptions: { scss: [Object] }, lightningcss: undefined }, vite:config optimizeDeps: { vite:config holdUntilCrawlEnd: true, vite:config esbuildOptions: { vite:config preserveSymlinks: false, vite:config define: [Object], vite:config jsx: 'automatic', vite:config inject: [Array], vite:config plugins: [Array] vite:config }, vite:config include: [ 'react', 'react/jsx-dev-runtime', 'react/jsx-runtime' ], vite:config exclude: [ vite:config '/Users/gustavo/Documents/Nuvidio/companyV2/node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.cjs', vite:config '/Users/gustavo/Documents/Nuvidio/companyV2/node_modules/vite-plugin-node-polyfills/shims/global/dist/index.cjs', vite:config '/Users/gustavo/Documents/Nuvidio/companyV2/node_modules/vite-plugin-node-polyfills/shims/process/dist/index.cjs' vite:config ] vite:config }, vite:config build: { vite:config target: [ 'es2020', 'edge88', 'firefox78', 'chrome87', 'safari14' ], vite:config cssTarget: [ 'es2020', 'edge88', 'firefox78', 'chrome87', 'safari14' ], vite:config outDir: 'build', vite:config assetsDir: 'assets', vite:config assetsInlineLimit: 4096, vite:config cssCodeSplit: true, vite:config sourcemap: false, vite:config rollupOptions: { onwarn: [Function: onwarn], plugins: [Array] }, vite:config minify: 'esbuild', vite:config terserOptions: {}, vite:config write: true, vite:config emptyOutDir: null, vite:config copyPublicDir: true, vite:config manifest: false, vite:config lib: false, vite:config ssr: false, vite:config ssrManifest: false, vite:config ssrEmitAssets: false, vite:config reportCompressedSize: true, vite:config chunkSizeWarningLimit: 500, vite:config watch: null, vite:config commonjsOptions: { include: [Array], extensions: [Array] }, vite:config dynamicImportVarsOptions: { warnOnError: true, exclude: [Array] }, vite:config modulePreload: { polyfill: true }, vite:config cssMinify: true vite:config }, vite:config test: { vite:config globals: true, vite:config environment: 'jsdom', vite:config setupFiles: './src/Tests/setup.ts' vite:config }, vite:config esbuild: { jsxDev: false, jsx: 'automatic', jsxImportSource: undefined }, vite:config resolve: { vite:config mainFields: [ 'browser', 'module', 'jsnext:main', 'jsnext' ], vite:config conditions: [], vite:config extensions: [ vite:config '.mjs', '.js', vite:config '.mts', '.ts', vite:config '.jsx', '.tsx', vite:config '.json' vite:config ], vite:config dedupe: [ 'react', 'react-dom' ], vite:config preserveSymlinks: false, vite:config alias: [ vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object], [Object], [Object], [Object], vite:config [Object], [Object] vite:config ] vite:config }, vite:config configFile: '/Users/gustavo/Documents/Nuvidio/companyV2/vite.config.ts', vite:config configFileDependencies: [ '/Users/gustavo/Documents/Nuvidio/companyV2/vite.config.ts' ], vite:config inlineConfig: { vite:config root: undefined, vite:config base: undefined, vite:config mode: undefined, vite:config configFile: undefined, vite:config logLevel: undefined, vite:config clearScreen: undefined, vite:config build: {} vite:config }, vite:config root: '/Users/gustavo/Documents/Nuvidio/companyV2', vite:config decodedBase: '/', vite:config rawBase: '/', vite:config cacheDir: '/Users/gustavo/Documents/Nuvidio/companyV2/node_modules/.vite', vite:config command: 'build', vite:config mode: 'production', vite:config ssr: { vite:config target: 'node', vite:config optimizeDeps: { noDiscovery: true, esbuildOptions: [Object] } vite:config }, vite:config isWorker: false, vite:config mainConfig: null, vite:config bundleChain: [], vite:config isProduction: true, vite:config preview: { vite:config port: undefined, vite:config strictPort: undefined, vite:config host: undefined, vite:config https: undefined, vite:config open: true, vite:config proxy: undefined, vite:config cors: undefined, vite:config headers: undefined vite:config }, vite:config envDir: '/Users/gustavo/Documents/Nuvidio/companyV2', vite:config env: { vite:config VITE_APP_BASENAME: '', vite:config VITE_PORT: '4020', vite:config VITE_APP_REAL_TIME_CONNECTION_STRING: 'https://dev.api.nuvidio.com', vite:config VITE_APP_CONNECTION_STRING: 'https://dev.api.nuvidio.com', vite:config VITE_APP_AUDITOR_API_URL: 'https://dev.api.nuvidio.com/auditor', vite:config VITE_APP_VERSION: '2.23.1', vite:config VITE_APP_ENVIRONMENT: 'homologation', vite:config BASE_URL: '/', vite:config MODE: 'production', vite:config DEV: false, vite:config PROD: true vite:config }, vite:config assetsInclude: [Function: assetsInclude], vite:config logger: { vite:config hasWarned: false, vite:config info: [Function: info], vite:config warn: [Function: warn], vite:config warnOnce: [Function: warnOnce], vite:config error: [Function: error], vite:config clearScreen: [Function: clearScreen], vite:config hasErrorLogged: [Function: hasErrorLogged] vite:config }, vite:config packageCache: Map(1) { vite:config 'fnpd_/Users/gustavo/Documents/Nuvidio/companyV2' => { vite:config dir: '/Users/gustavo/Documents/Nuvidio/companyV2', vite:config data: [Object], vite:config hasSideEffects: [Function: hasSideEffects], vite:config webResolvedImports: {}, vite:config nodeResolvedImports: {}, vite:config setResolvedCache: [Function: setResolvedCache], vite:config getResolvedCache: [Function: getResolvedCache] vite:config }, vite:config set: [Function (anonymous)] vite:config }, vite:config createResolver: [Function: createResolver], vite:config worker: { format: 'iife', plugins: '() => plugins', rollupOptions: {} }, vite:config appType: 'spa', vite:config experimental: { importGlobRestoreExtension: false, hmrPartialAccept: false }, vite:config getSortedPlugins: [Function: getSortedPlugins], vite:config getSortedPluginHooks: [Function: getSortedPluginHooks] vite:config } +187ms vite v5.4.7 building for production... transforming (1) index.html vite:resolve 0.59ms bootstrap/scss/functions -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/bootstrap/scss/_functions.scss +0ms transforming (4) src/serviceWorker.js vite:resolve 0.24ms scss/variables/variables -> null +54ms vite:resolve 0.38ms fonts/feather.eot?t=1525787366991 -> /Users/gustavo/Documents/Nuvidio/companyV2/src/@core/assets/fonts/feather/fonts/feather.eot?t=1525787366991 +224ms vite:resolve 0.50ms fonts/feather.eot?t=1525787366991 -> /Users/gustavo/Documents/Nuvidio/companyV2/src/@core/assets/fonts/feather/fonts/feather.eot?t=1525787366991 +0ms vite:resolve 1.33ms bootstrap/scss/variables -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/bootstrap/scss/_variables.scss +32ms transforming (12) node_modules/react-toastify/dist/react-toastify.esm.mjs vite:resolve 1.43ms fonts/Krub-Light.ttf -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/@nuvidio/react-components/lib/fonts/Krub-Light.ttf +94ms vite:resolve 1.46ms fonts/Krub-Regular.ttf -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/@nuvidio/react-components/lib/fonts/Krub-Regular.ttf +0ms vite:resolve 1.49ms fonts/Krub-Medium.ttf -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/@nuvidio/react-components/lib/fonts/Krub-Medium.ttf +0ms vite:resolve 1.51ms fonts/Krub-SemiBold.ttf -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/@nuvidio/react-components/lib/fonts/Krub-SemiBold.ttf +0ms vite:resolve 1.54ms fonts/OpenSans-Light.ttf -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/@nuvidio/react-components/lib/fonts/OpenSans-Light.ttf +0ms vite:resolve 1.54ms fonts/OpenSans-Regular.ttf -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/@nuvidio/react-components/lib/fonts/OpenSans-Regular.ttf +0ms vite:resolve 1.53ms fonts/OpenSans-Medium.ttf -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/@nuvidio/react-components/lib/fonts/OpenSans-Medium.ttf +1ms vite:resolve 1.93ms fonts/OpenSans-SemiBold.ttf -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/@nuvidio/react-components/lib/fonts/OpenSans-SemiBold.ttf +0ms vite:resolve 0.21ms fonts/feather.woff?t=1525787366991 -> /Users/gustavo/Documents/Nuvidio/companyV2/src/@core/assets/fonts/feather/fonts/feather.woff?t=1525787366991 +209ms transforming (19) src/Hooks/useLuxonLocale.ts vite:resolve 0.63ms bootstrap/scss/mixins -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/bootstrap/scss/_mixins.scss +29ms transforming (32) node_modules/react/cjs/react-jsx-runtime.production.min.js vite:resolve 0.13ms fonts/feather.ttf?t=1525787366991 -> /Users/gustavo/Documents/Nuvidio/companyV2/src/@core/assets/fonts/feather/fonts/feather.ttf?t=1525787366991 +13s transforming (36) node_modules/i18next-http-backend/esm/index.js vite:resolve 0.40ms bootstrap/scss/bootstrap -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/bootstrap/scss/bootstrap.scss +578ms vite:resolve 0.70ms scss/variables/_variables-components -> null +263ms transforming (48) src/Redux/Slices/CompanySlice.ts vite:resolve 0.27ms fonts/feather.svg?t=1525787366991 -> /Users/gustavo/Documents/Nuvidio/companyV2/src/@core/assets/fonts/feather/fonts/feather.svg?t=1525787366991 +44ms vite:resolve 0.65ms ./Assets/images/backgrounds/text-chat-bg.png -> /Users/gustavo/Documents/Nuvidio/companyV2/src/Assets/images/backgrounds/text-chat-bg.png +421ms transforming (142) node_modules/use-sync-external-store/shim/with-selector.js vite:resolve 0.30ms react-toastify/dist/ReactToastify.css -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/react-toastify/dist/ReactToastify.css +722ms vite:resolve 0.31ms bootstrap/scss/mixins/gradients -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/bootstrap/scss/mixins/_gradients.scss +66ms transforming (304) node_modules/@sentry/utils/esm/memo.js vite:resolve 0.36ms bootstrap/scss/mixins/_gradients -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/bootstrap/scss/mixins/_gradients.scss +941ms transforming (2136) src/Assets/images/pages/login-v2-dark.svg vite:resolve 0.74ms flatpickr/dist/flatpickr.css -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/flatpickr/dist/flatpickr.css +2s transforming (2681) node_modules/define-data-property/index.js vite:resolve 0.07ms ../../../node_modules/perfect-scrollbar/css/perfect-scrollbar.css -> /Users/gustavo/Documents/Nuvidio/companyV2/node_modules/perfect-scrollbar/css/perfect-scrollbar.css +2s transforming (2829) src/Templates/Department/DepartmentCreate/Tabs/GeneralCreateTab.tsx vite:resolve 0.05ms ./react-draft-wysiwyg.css -> /Users/gustavo/Documents/Nuvidio/companyV2/src/@core/scss/react/libs/editor/react-draft-wysiwyg.css +673ms thread 'Validations