Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run NextJS locally #8

Closed
JoshuaCWebDeveloper opened this issue Aug 28, 2022 · 3 comments
Closed

Unable to run NextJS locally #8

JoshuaCWebDeveloper opened this issue Aug 28, 2022 · 3 comments

Comments

@JoshuaCWebDeveloper
Copy link
Collaborator

I've tried all combinations of the 4 NPM scripts, and I always get this error when opening the app locally:

A bad HTTP response code (404) was received when fetching the script.
localhost/:1 Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope ('http://localhost:8001/pwa/') with script ('http://localhost:8001/pwa/sw.js'): A bad HTTP response code (404) was received when fetching the script.
rynomad pushed a commit that referenced this issue Aug 28, 2022
@rynomad rynomad closed this as completed Aug 28, 2022
@rynomad rynomad reopened this Aug 28, 2022
@JoshuaCWebDeveloper
Copy link
Collaborator Author

Output of next dev:

joshua@JOSHUA-SAMSUNG:~/WebDev/goodloops/herakles/daemon/next(master)$ npm run dev

> dev
> next dev -p 8001

ready - started server on 0.0.0.0:8001, url: http://localhost:8001
warn  - Invalid next.config.js options detected: 
  - The root value has an unexpected property, extends, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, future, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).

See more info here: https://nextjs.org/docs/messages/invalid-next-config
> [PWA] Compile client (static)
> [PWA] Custom worker found: /home/joshua/WebDev/goodloops/herakles/daemon/next/worker/index.js
> [PWA] Build custom worker: /home/joshua/WebDev/goodloops/herakles/daemon/next/.next/worker-development.js
> [PWA] Auto register service worker with: /home/joshua/WebDev/goodloops/herakles/daemon/next/node_modules/next-pwa/register.js
> [PWA] Service worker: /home/joshua/WebDev/goodloops/herakles/daemon/next/.next/sw.js
> [PWA]   url: /pwa/sw.js
> [PWA]   scope: /pwa/
> [PWA] Build in develop mode, cache and precache are mostly disabled. This means offline support is disabled, but you can continue developing other functions in service worker.
> [PWA] Compile server
> [PWA] Compile server
[BABEL] Note: The code generator has deoptimised the styling of /home/joshua/WebDev/goodloops/herakles/daemon/next/node_modules/herakles-lib/dist/pocket_client.js as it exceeds the max of 500KB.
event - compiled client and server successfully in 6.7s (577 modules)
wait  - compiling /_error (client and server)...
warn  - GenerateSW has been called multiple times, perhaps due to running webpack in --watch mode. The precache manifest generated after the first call may be inaccurate! Please see https://github.com/GoogleChrome/workbox/issues/1790 for more information.
warn  - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works
warn  - GenerateSW has been called multiple times, perhaps due to running webpack in --watch mode. The precache manifest generated after the first call may be inaccurate! Please see https://github.com/GoogleChrome/workbox/issues/1790 for more information.
wait  - compiling / (client and server)...
warn  - GenerateSW has been called multiple times, perhaps due to running webpack in --watch mode. The precache manifest generated after the first call may be inaccurate! Please see https://github.com/GoogleChrome/workbox/issues/1790 for more information.

@rynomad
Copy link
Contributor

rynomad commented Aug 28, 2022

phone dead. charging now. still working on it.

@JoshuaCWebDeveloper
Copy link
Collaborator Author

The NextJS project is now defunct and has been replaced with: https://github.com/samizdapp/athena

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants