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

I can't run "next-translate" example. Page 404 error. #73046

Open
1 task done
tw-yd opened this issue Nov 21, 2024 · 0 comments
Open
1 task done

I can't run "next-translate" example. Page 404 error. #73046

tw-yd opened this issue Nov 21, 2024 · 0 comments
Labels
examples Issue/PR related to examples

Comments

@tw-yd
Copy link

tw-yd commented Nov 21, 2024

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

# This is a non-commercial version of StackBlitz.
# If you’re using this for business purposes, please purchase a license here.

~/projects/kkviljzkwp.github
❯ npm install && npx next dev

added 37 packages in 2s

8 packages are looking for funding
  run `npm fund` for details
   ▲ Next.js 15.0.3
   - Local:        http://localhost:3000

 ✓ Starting...
   Downloading swc package @next/swc-wasm-nodejs... to /home/.cache/next-swc
 ✓ Ready in 13.3s
 ○ Compiling /_not-found ...
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'tunnel-agent' in '/home/projects/kkviljzkwp.github/node_modules/sharp'
<w> while resolving 'tunnel-agent' in /home/projects/kkviljzkwp.github/node_modules/sharp to a directory
 ✓ Compiled /_not-found in 7.4s (571 modules)
next-translate - compiled page: / - locale: en - namespaces: common - used loader: server /layout
 GET / 404 in 7755ms
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'tunnel-agent' in '/home/projects/kkviljzkwp.github/node_modules/sharp'
<w> while resolving 'tunnel-agent' in /home/projects/kkviljzkwp.github/node_modules/sharp to a directory
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'tunnel-agent' in '/home/projects/kkviljzkwp.github/node_modules/sharp'
<w> while resolving 'tunnel-agent' in /home/projects/kkviljzkwp.github/node_modules/sharp to a directory

Which example does this report relate to?

with-next-translate

What browser are you using? (if relevant)

Chrome 131.0.6778.70

How are you deploying your application? (if relevant)

preview live with StackBlitz

Describe the Bug

I ran the sample program but it showed a 404 error which I don't think is reasonable.

Expected Behavior

The sample screen is displayed and the translation function runs normally.

To Reproduce

If you use the StackBlitz deployment in the README, a failure screen will appear.

@tw-yd tw-yd added the examples Issue/PR related to examples label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Issue/PR related to examples
Projects
None yet
Development

No branches or pull requests

1 participant