Giter Club home page Giter Club logo

Comments (7)

phiresky avatar phiresky commented on June 27, 2024

Which command did you run to get that output?

You need to install the dependencies with yarn not npm.

from blog.

willian20091 avatar willian20091 commented on June 27, 2024

Initially I tested it with yarn, and the errors occurred as per the log below. Later I tried to install the dependencies with npm.

➜  blog git:(master) yarn install 
➤ YN0000: ┌ Resolution step
➤ YN0060: │ next-blog@workspace:. provides react (p04a35) with version 18.2.0, which doesn't satisfy what react-katex requests
➤ YN0002: │ next-blog@workspace:. doesn't provide webpack (p119f0), requested by ts-loader
➤ YN0002: │ next-blog@workspace:. doesn't provide webpack (pb0499), requested by url-loader
➤ YN0002: │ recharts@npm:2.1.12 [b12ba] doesn't provide prop-types (p64d7f), requested by react-smooth
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ @next/swc-darwin-arm64@npm:12.2.0 can't be found in the cache and w
➤ YN0013: │ fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::vers
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ @fortawesome/fontawesome-common-types@npm:6.1.1 must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/free-regular-svg-icons@npm:6.1.1 must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/free-solid-svg-icons@npm:6.1.1 must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/fontawesome-svg-core@npm:6.1.1 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 1s 92ms
➤ YN0000: Done with warnings in 1s 344ms
➜  blog git:(master) ✗ yarn dev 
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Qualified path resolution failed: we looked for the following paths, but none could be accessed.

Source path: /Users/willianferreira/Downloads/blog/posts-built/summary.json
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.js
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.json
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.node
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.ts
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.tsx
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.jsx

Require stack:
- /Users/willianferreira/Downloads/blog/client/next.config.js
    at Function.call (/Users/willianferreira/Downloads/blog/.pnp.cjs:17104:13)
    at Function.mod._resolveFilename (/Users/willianferreira/Downloads/blog/.yarn/__virtual__/next-virtual-c3747343ad/0/cache/next-npm-12.2.0-735322d5c2-38456c3393.zip/node_modules/next/build/webpack/require-hook.ts:142:26)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/willianferreira/Downloads/blog/.yarn/cache/@cspotcode-source-map-support-npm-0.8.1-964f2de99d-5718f26708.zip/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.require$$0.Module._load (/Users/willianferreira/Downloads/blog/.pnp.cjs:16958:42)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/Users/willianferreira/Downloads/blog/client/next.config.js:10:17)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Object.require$$0.Module._extensions..js (/Users/willianferreira/Downloads/blog/.pnp.cjs:17148:33)
➜  blog git:(master) ✗ 

from blog.

phiresky avatar phiresky commented on June 27, 2024

Ah yes, that error is because you need to run yarn posts before running yarn dev to generate the summary.json and other files. I've just added that info to the readme.

from blog.

willian20091 avatar willian20091 commented on June 27, 2024

I tested it, but the same problem still occurs. I realized that after running yarn install, the node module folder should be created with all the dependencies, but this does not happen.
Captura de Tela 2023-06-15 às 15 02 39

➜  blog git:(master) ✗ yarn install 
➤ YN0000: ┌ Resolution step
➤ YN0060: │ next-blog@workspace:. provides react (p04a35) with version 18.2.0, which doesn't satisfy what react-katex requests
➤ YN0002: │ next-blog@workspace:. doesn't provide webpack (pd41b9), requested by ts-loader
➤ YN0002: │ next-blog@workspace:. doesn't provide webpack (pb0499), requested by url-loader
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed
➤ YN0000: Done with warnings in 0s 255ms
➜  blog git:(master) ✗ yarn posts
processing 2019/about.md
Error: spawn pandoc ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn pandoc',
  path: 'pandoc',
  spawnargs: [
    '-t',
    'json',
    '-M',
    'url2cite-link-output=sup',
    '--filter=../../pandoc-url2cite.sh',
    '--citeproc',
    '--csl=../ieee-with-url.csl',
    '--',
    '/Users/willianferreira/Downloads/blog/posts/2019/about.md'
  ],
  cmd: 'pandoc -t json -M url2cite-link-output=sup --filter=../../pandoc-url2cite.sh --citeproc --csl=../ieee-with-url.csl -- /Users/willianferreira/Downloads/blog/posts/2019/about.md',
  stdout: '',
  stderr: ''
}
➜  blog git:(master) ✗ 
➜  blog git:(master) ✗ 
➜  blog git:(master) ✗ 
➜  blog git:(master) ✗ yarn dev 
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Qualified path resolution failed: we looked for the following paths, but none could be accessed.

Source path: /Users/willianferreira/Downloads/blog/posts-built/summary.json
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.js
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.json
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.node
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.ts
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.tsx
Not found: /Users/willianferreira/Downloads/blog/posts-built/summary.json.jsx

Require stack:
- /Users/willianferreira/Downloads/blog/client/next.config.js
    at Function.call (/Users/willianferreira/Downloads/blog/.pnp.cjs:17598:13)
    at Function.call (/Users/willianferreira/Downloads/blog/.yarn/__virtual__/next-virtual-43d5643878/0/cache/next-npm-12.3.4-cdaf2db0a7-d96fc4f5bc.zip/node_modules/next/build/webpack/require-hook.ts:25:28)
    at Function.mod._resolveFilename (/Users/willianferreira/Downloads/blog/.yarn/__virtual__/next-virtual-43d5643878/0/cache/next-npm-12.3.4-cdaf2db0a7-d96fc4f5bc.zip/node_modules/next/build/webpack/require-hook.ts:25:28)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/willianferreira/Downloads/blog/.yarn/cache/@cspotcode-source-map-support-npm-0.8.1-964f2de99d-5718f26708.zip/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.require$$0.Module._load (/Users/willianferreira/Downloads/blog/.pnp.cjs:17452:42)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/Users/willianferreira/Downloads/blog/client/next.config.js:10:17)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
➜  blog git:(master) ✗ 

from blog.

phiresky avatar phiresky commented on June 27, 2024

I'm using yarn pnp so no node_modules folder is needed. the issue is you need to install pandoc (see the error spawn pandoc ENOENT)

from blog.

willian20091 avatar willian20091 commented on June 27, 2024

Thanks for the clarifications. I will install and test again later.

from blog.

willian20091 avatar willian20091 commented on June 27, 2024

It worked, thanks for the help.

from blog.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.