Closed nareshkatta99 closed 1 year ago
Since yesterday our vercel builds are failing, Upon inspection, we found that there is some issue with react-timezone-select
We are not using react-select in our application, but react-timezone-select has that dependancy.
But, I thought it would be better if we report this issue here once.
Build error occurred 20:33:23.398 | /vercel/path0/node_modules/react-select/dist/react-select.esm.js:1 20:33:23.398 | import { u as useStateManager } from './useStateManager-7e1e8489.esm.js'; 20:33:23.399 | ^^^^^^ 20:33:23.399 | 20:33:23.399 | SyntaxError: Cannot use import statement outside a module 20:33:23.399 | at Object.compileFunction (node:vm:360:18) 20:33:23.400 | at wrapSafe (node:internal/modules/cjs/loader:1094:15) 20:33:23.400 | at Module._compile (node:internal/modules/cjs/loader:1129:27) 20:33:23.400 | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10) 20:33:23.400 | at Module.load (node:internal/modules/cjs/loader:1043:32) 20:33:23.400 | at Function.Module._load (node:internal/modules/cjs/loader:878:12) 20:33:23.401 | at ModuleWrap. (node:internal/modules/esm/translators:169:29) 20:33:23.401 | at ModuleJob.run (node:internal/modules/esm/module_job:193:25) 20:33:23.401 | at async Promise.all (index 0) 20:33:23.401 | at async ESMLoader.import (node:internal/modules/esm/loader:530:24) { 20:33:23.402 | type: 'SyntaxError' 20:33:23.402 | } 20:33:23.588 | error Command failed with exit code 1. 20:33:23.589 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 20:33:23.619 | Error: Command "yarn run build" exited with 1 20:33:23.888 | BUILD_UTILS_SPAWN_1: Command "yarn run build" exited with 1
20:33:23.398 | /vercel/path0/node_modules/react-select/dist/react-select.esm.js:1 20:33:23.398 | import { u as useStateManager } from './useStateManager-7e1e8489.esm.js'; 20:33:23.399 | ^^^^^^ 20:33:23.399 | 20:33:23.399 | SyntaxError: Cannot use import statement outside a module 20:33:23.399 | at Object.compileFunction (node:vm:360:18) 20:33:23.400 | at wrapSafe (node:internal/modules/cjs/loader:1094:15) 20:33:23.400 | at Module._compile (node:internal/modules/cjs/loader:1129:27) 20:33:23.400 | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10) 20:33:23.400 | at Module.load (node:internal/modules/cjs/loader:1043:32) 20:33:23.400 | at Function.Module._load (node:internal/modules/cjs/loader:878:12) 20:33:23.401 | at ModuleWrap. (node:internal/modules/esm/translators:169:29) 20:33:23.401 | at ModuleJob.run (node:internal/modules/esm/module_job:193:25) 20:33:23.401 | at async Promise.all (index 0) 20:33:23.401 | at async ESMLoader.import (node:internal/modules/esm/loader:530:24) { 20:33:23.402 | type: 'SyntaxError' 20:33:23.402 | } 20:33:23.588 | error Command failed with exit code 1. 20:33:23.589 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 20:33:23.619 | Error: Command "yarn run build" exited with 1 20:33:23.888 | BUILD_UTILS_SPAWN_1: Command "yarn run build" exited with 1
Closing this issue as it is same as #5595
Since yesterday our vercel builds are failing, Upon inspection, we found that there is some issue with react-timezone-select
We are not using react-select in our application, but react-timezone-select has that dependancy.
But, I thought it would be better if we report this issue here once.