telescope icon indicating copy to clipboard operation
telescope copied to clipboard

Vercel deployment ESLint error

Open menghif opened this issue 2 years ago • 3 comments

What happened:

Vercel is having trouble with our ESLint configuration:

error - ESLint: Failed to load plugin 'react' declared in '.eslintrc.js » @senecacdot/eslint-config-telescope':
Cannot find module 'eslint-plugin-react'
Require stack: - /vercel/path1/__placeholder__.js
Referenced from: /vercel/path1/node_modules/@senecacdot/eslint-config-telescope/index.js

Build log:

Cloning github.com/Seneca-CDOT/telescope (Branch: issue-2993.1, Commit: aab4fcb)
Cloning completed: 4.820s
Installing build runtime...
Build runtime installed: 2.683s
Looking up build cache...
Build Cache not found
Running "install" command: `npm install`...
npm WARN deprecated @material-ui/[email protected]: You can now upgrade to @mui/icons. See the guide: https://mui.com/guides/migration-v4/
npm WARN deprecated @material-ui/[email protected]: You can now upgrade to @mui/material. See the guide: https://mui.com/guides/migration-v4/
npm WARN deprecated @material-ui/[email protected]: You can now upgrade to @mui/styles. See the guide: https://mui.com/guides/migration-v4/
npm WARN deprecated @material-ui/[email protected]: You can now upgrade to @mui/system. See the guide: https://mui.com/guides/migration-v4/
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-android-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-darwin-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-darwin-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-linux-arm-gnueabihf):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-linux-arm64-gnu):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-linux-arm64-musl):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-win32-arm64-msvc):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"win32","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-win32-ia32-msvc):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/[email protected] (node_modules/next/node_modules/@next/swc-win32-x64-msvc):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/[email protected]: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/rollup/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN @apideck/[email protected] requires a peer of ajv@>=8 but none is installed. You must install peer dependencies yourself.
npm WARN The package @testing-library/react is included as both a dev and production dependency.
added 686 packages from 420 contributors and audited 699 packages in 46.667s
94 packages are looking for funding
  run `npm fund` for details
found 1 moderate severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
Detected Next.js version: 12.0.9
Running "npm run build"
> @senecacdot/[email protected] build /vercel/path1
> next build && next export
Trying to load missing ENV variables from /.env
Trying to load missing ENV variables from /config/env.development
Using NEXT_PUBLIC_WEB_URL=https://telescope-dr7axtxri-humphd.vercel.app/
Using NEXT_PUBLIC_API_URL=https://dev.telescope.cdot.systems/
Using NEXT_PUBLIC_IMAGE_URL=https://dev.api.telescope.cdot.systems/v1/image
Using NEXT_PUBLIC_POSTS_URL=https://dev.api.telescope.cdot.systems/v1/posts
Using NEXT_PUBLIC_SSO_URL=undefined
Using NEXT_PUBLIC_SEARCH_URL=https://dev.api.telescope.cdot.systems/v1/search
Using NEXT_PUBLIC_FEED_DISCOVERY_URL=https://dev.api.telescope.cdot.systems/v1/feed-discovery
Using NEXT_PUBLIC_STATUS_URL=https://dev.api.telescope.cdot.systems/v1/status
Using NEXT_PUBLIC_GIT_COMMIT=undefined
warn  - SWC minify beta enabled. https://nextjs.org/docs/messages/swc-minify-enabled
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
info  - Checking validity of types...
error - ESLint: Failed to load plugin 'react' declared in '.eslintrc.js » @senecacdot/eslint-config-telescope': Cannot find module 'eslint-plugin-react' Require stack: - /vercel/path1/__placeholder__.js Referenced from: /vercel/path1/node_modules/@senecacdot/eslint-config-telescope/index.js
info  - Creating an optimized production build...
> [PWA] Compile client (static)
> [PWA] Auto register service worker with: /vercel/path1/node_modules/next-pwa/register.js
> [PWA] Service worker: /vercel/path1/public/sw.js
> [PWA]   url: /sw.js
> [PWA]   scope: /
> [PWA] Compile server
info  - Compiled successfully
info  - Collecting page data...
info  - Generating static pages (0/7)
info  - Generating static pages (1/7)
info  - Generating static pages (3/7)
info  - Generating static pages (5/7)
info  - Generating static pages (7/7)
info  - Finalizing page optimization...
Page                                       Size     First Load JS
┌ ○ /                                      10.9 kB         169 kB
├   /_app                                  0 B            88.1 kB
├ ○ /404                                   180 B          88.3 kB
├ ○ /about                                 31.7 kB         179 kB
├ ○ /error                                 4.6 kB          112 kB
├ ○ /search                                6.12 kB         174 kB
└ ○ /signup                                43.8 kB         174 kB
+ First Load JS shared by all              88.1 kB
  ├ chunks/framework-629abaa81d20e615.js   42.3 kB
  ├ chunks/main-bac0a4afce30e777.js        29 kB
  ├ chunks/pages/_app-a43be0bb771c69e1.js  15.1 kB
  ├ chunks/webpack-29aed2bc280c1da2.js     1.65 kB
  └ css/008f6e8700af3150.css               1.56 kB
○  (Static)  automatically rendered as static HTML (uses no initial props)
Trying to load missing ENV variables from /.env
Trying to load missing ENV variables from /config/env.development
Using NEXT_PUBLIC_WEB_URL=https://telescope-dr7axtxri-humphd.vercel.app/
Using NEXT_PUBLIC_API_URL=https://dev.telescope.cdot.systems/
Using NEXT_PUBLIC_IMAGE_URL=https://dev.api.telescope.cdot.systems/v1/image
Using NEXT_PUBLIC_POSTS_URL=https://dev.api.telescope.cdot.systems/v1/posts
Using NEXT_PUBLIC_SSO_URL=undefined
Using NEXT_PUBLIC_SEARCH_URL=https://dev.api.telescope.cdot.systems/v1/search
Using NEXT_PUBLIC_FEED_DISCOVERY_URL=https://dev.api.telescope.cdot.systems/v1/feed-discovery
Using NEXT_PUBLIC_STATUS_URL=https://dev.api.telescope.cdot.systems/v1/status
Using NEXT_PUBLIC_GIT_COMMIT=undefined
warn  - SWC minify beta enabled. https://nextjs.org/docs/messages/swc-minify-enabled
info  - using build directory: /vercel/path1/.next
info  - Copying "static build" directory
info  - No "exportPathMap" found in "/vercel/path1/next.config.js". Generating map from "./pages"
info  - Launching 3 workers
info  - Exporting (0/6)
info  - Copying "public" directory
info  - Exporting (1/6)
info  - Exporting (2/6)
info  - Exporting (4/6)
info  - Exporting (6/6)
Export successful. Files written to /vercel/path1/out
Uploading build outputs...
Build completed. Populating build cache...
Uploading build cache [88.07 MB]...
Build cache uploaded: 1.944s
Done with "package.json"

menghif avatar Mar 24 '22 16:03 menghif

Noticed this is still an issue:

error - ESLint: Failed to load plugin 'react' declared in '.eslintrc.js » @senecacdot/eslint-config-telescope': Cannot find module 'eslint-plugin-react' Require stack: - /vercel/path1/__placeholder__.js Referenced from: /vercel/path1/node_modules/.pnpm/@[email protected][email protected]/node_modules/@senecacdot/eslint-config-telescope/index.js

humphd avatar Jul 07 '22 14:07 humphd

Noticed this is still an issue:

error - ESLint: Failed to load plugin 'react' declared in '.eslintrc.js » @senecacdot/eslint-config-telescope': Cannot find module 'eslint-plugin-react' Require stack: - /vercel/path1/__placeholder__.js Referenced from: /vercel/path1/node_modules/.pnpm/@[email protected][email protected]/node_modules/@senecacdot/eslint-config-telescope/index.js

@humphd are we still seeing this, or can I close the issue?

manekenpix avatar Oct 03 '22 20:10 manekenpix

The most recent build you did yesterday had it:

info  - Checking validity of types...
--
12:13:08.704 | error - ESLint: Failed to load plugin 'react' declared in '.eslintrc.js » @senecacdot/eslint-config-telescope': Cannot find module 'eslint-plugin-react' Require stack: - /vercel/path1/__placeholder__.js Referenced from: /vercel/path1/node_modules/.pnpm/@[email protected][email protected]/node_modules/@senecacdot/eslint-config-telescope/index.js

humphd avatar Oct 04 '22 13:10 humphd