news-catalyst / next-tinynewsdemo

Frontend for Tiny News Collective organizations
https://next-tinynewsdemo.vercel.app
1 stars 0 forks source link

TypeError: Failed to parse URL from tinynewsdemo/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.wasm #1270

Closed natea closed 1 year ago

natea commented 2 years ago

I'm getting this error when I run the npm build && npm run start command:

$ npm run build && npm run start

> next-tinynewsdemo@0.1.0 prebuild
> node script/build-newsletter-editions.js

Not publishing newsletters

> next-tinynewsdemo@0.1.0 build
> NODE_OPTIONS='--trace-warnings' next build

info  - Loaded env from /Users/nateaune/Documents/code/next-tinynewsdemo/.env.local
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

./pages/_sites/[site]/tinycms/admin/[subdomain].js
230:6  Warning: React Hook useEffect has a missing dependency: 'subdomain'. Either include it or remove the dependency array. If 'setConfigureSite' needs the current value of 'subdomain', you can also switch to useReducer instead of useState and read 'subdomain' in the reducer.  react-hooks/exhaustive-deps

./pages/_sites/[site]/tinycms/admin/index.js
27:16  Warning: Assignments to the 'orgLinks' variable from inside React Hook useEffect will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useEffect.  react-hooks/exhaustive-deps

./pages/_sites/[site]/tinycms/analytics/dashboard.js
49:6  Warning: React Hook useEffect has missing dependencies: 'endDate' and 'startDate'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps

./pages/_sites/[site]/tinycms/authors/[id].js
86:6  Warning: React Hook useEffect has a missing dependency: 'bio'. Either include it or remove the dependency array. You can also replace multiple useState variables with useReducer if 'setStaticBio' needs the current value of 'bio'.  react-hooks/exhaustive-deps

./components/LandingPage.js
41:11  Warning: Do not use <img>. Use Image from 'next/image' instead. See https://nextjs.org/docs/messages/no-img-element.  @next/next/no-img-element

./components/nav/AdminNav.js
35:6  Warning: React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps

./components/nav/GlobalNav.js
64:6  Warning: React Hook useEffect has a missing dependency: 'monkeypodLink'. Either include it or remove the dependency array. If 'setMonkeypodUrl' needs the current value of 'monkeypodLink', you can also switch to useReducer instead of useState and read 'monkeypodLink' in the reducer.  react-hooks/exhaustive-deps

./components/nodes/ImageNodeWordPress.js
32:7  Warning: Do not use <img>. Use Image from 'next/image' instead. See https://nextjs.org/docs/messages/no-img-element.  @next/next/no-img-element

./components/nodes/embeds/Facebook.js
11:6  Warning: React Hook useEffect has a missing dependency: 'node.html'. Either include it or remove the dependency array. If 'setMarkup' needs the current value of 'node.html', you can also switch to useReducer instead of useState and read 'node.html' in the reducer.  react-hooks/exhaustive-deps

./components/nodes/embeds/LetterheadNewsletter.js
14:6  Warning: React Hook useEffect has a missing dependency: 'content'. Either include it or remove the dependency array. If 'setMarkup' needs the current value of 'content', you can also switch to useReducer instead of useState and read 'content' in the reducer.  react-hooks/exhaustive-deps

./components/plugins/DonationCard.js
62:6  Warning: React Hook useEffect has a missing dependency: 'monkeypodLink'. Either include it or remove the dependency array. If 'setMpUrl' needs the current value of 'monkeypodLink', you can also switch to useReducer instead of useState and read 'monkeypodLink' in the reducer.  react-hooks/exhaustive-deps

./components/plugins/NewsletterSubscribe.js
62:6  Warning: React Hook useEffect has a missing dependency: 'trackedNewsletterImpression'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps

./components/tinycms/SiteInfoSettings.js
484:6  Warning: React Hook useEffect has missing dependencies: 'staticAboutDek', 'staticAdvertisingDek', 'staticLandingPageDek', 'staticNewsletterDek', and 'staticSupportDek'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps

./components/tinycms/Upload.js
34:6  Warning: React Hook useEffect has missing dependencies: 'imageHeight', 'imageWidth', and 'props'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect.  react-hooks/exhaustive-deps

./components/tinycms/analytics/DailySessions.js
57:6  Warning: React Hook useEffect has missing dependencies: 'props.apiUrl' and 'props.site'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps

./components/tinycms/analytics/DonateClicks.js
335:6  Warning: React Hook useEffect has a missing dependency: 'sessionsByCategory'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps

./components/tinycms/analytics/NewsletterSignupFormData.js
214:6  Warning: React Hook useEffect has a missing dependency: 'sessionsByCategory'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps

./lib/tiny_s3.js
6:1  Warning: Assign object to a variable before exporting as module default  import/no-anonymous-default-export

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
warn  - using beta Middleware (not covered by semver) - https://nextjs.org/docs/messages/beta-middleware
info  - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc.js" https://nextjs.org/docs/messages/swc-disabled
info  - Using external babel configuration from /Users/nateaune/Documents/code/next-tinynewsdemo/.babelrc.js
info  - Creating an optimized production build
Failed to compile.

./public/curriculum/homepage.jpg
TypeError: Failed to parse URL from /Users/nateaune/Documents/code/next-tinynewsdemo/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.wasm
    at new Request (node:internal/deps/undici/undici:4813:19)
    at Agent.fetch2 (node:internal/deps/undici/undici:5505:29)
    at Object.fetch (node:internal/deps/undici/undici:6332:20)
    at fetch (node:internal/bootstrap/pre_execution:196:25)
    at instantiateAsync (/Users/nateaune/Documents/code/next-tinynewsdemo/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:424:28)
    at createWasm (/Users/nateaune/Documents/code/next-tinynewsdemo/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:447:13)
    at /Users/nateaune/Documents/code/next-tinynewsdemo/node_modules/next/dist/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js:1480:19
    at Object.instantiateEmscriptenWasm (/Users/nateaune/Documents/code/next-tinynewsdemo/node_modules/next/dist/server/lib/squoosh/emscripten-utils.js:15:12)
    at Object.dec (/Users/nateaune/Documents/code/next-tinynewsdemo/node_modules/next/dist/server/lib/squoosh/codecs.js:156:42)
    at Object.decodeBuffer (/Users/nateaune/Documents/code/next-tinynewsdemo/node_modules/next/dist/server/lib/squoosh/impl.js:55:31)

Import trace for requested module:
./components/curriculum/HomepageHeader.js
./components/curriculum/CurriculumHomepage.js
./pages/_sites/[site]/index.js

> Build failed because of webpack errors
chelsea-tnc commented 1 year ago

Hi @natea, I apologize for the delay in reply. Thank you for your interest in our project! Our tiny team is unable to support external developer requests at this time. We also don't have licensing information published for this repo yet, we're still working on those details. For now, this repo is unavailable for open source licensing. We aim to have more information on developer support in the future.