Giter Site home page Giter Site logo

pnpm build后卡住 about chatgpt-vercel HOT 3 CLOSED

xiyuvi avatar xiyuvi commented on June 5, 2024
pnpm build后卡住

from chatgpt-vercel.

Comments (3)

xiyuvi avatar xiyuvi commented on June 5, 2024

我阅读了官方文档 https://start.solidjs.com/api/start 后,知道build之前要先运行start,”Remember to run solid-start build before running solid-start start.“
于是我运行了,报下面的错误

pnpm start

> [email protected] start C:\Users\Administrator\Downloads\chatgpt-vercel-main
> solid-start start

 solid-start start 
 version  0.2.26
(node:9328) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
 adapter  node


  ➜  Page Routes:
     ┌─ http://localhost:3000/
     ├─ http://localhost:3000/*404
     └─ http://localhost:3000/session/:session

  ➜  API Routes:
     ┌─  http://localhost:3000/api/cron GET
     └─  http://localhost:3000/api/ POST

node:internal/errors:490
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\Administrator\Downloads\chatgpt-vercel-main\dist\server.js' imported from C:\Users\Administrator\Downloads\chatgpt-vercel-main\node_modules\.pnpm\[email protected][email protected][email protected][email protected]\node_modules\solid-start-node\index.js
    at new NodeError (node:internal/errors:399:5)
    at finalizeResolution (node:internal/modules/esm/resolve:326:11)
    at moduleResolve (node:internal/modules/esm/resolve:945:10)
    at defaultResolve (node:internal/modules/esm/resolve:1153:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ESMLoader.import (node:internal/modules/esm/loader:525:22)
    at importModuleDynamically (node:internal/modules/esm/translators:110:35)
    at importModuleDynamicallyCallback (node:internal/process/esm_loader:35:14) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.16.0
 ELIFECYCLE  Command failed with exit code 1.

好像是\node_modules.pnpm\[email protected][email protected][email protected][email protected]\node_modules\solid-start-node\index.js 依赖的这句导致的,import(pathToFileURL(join(config.root, "dist", "server.js")).toString());
但是我不知道应该怎么处理,请教您一下

from chatgpt-vercel.

xiyuvi avatar xiyuvi commented on June 5, 2024

记录一下解决办法,供后来人参考,重新删除依赖,使用npm i 安装,并且手动创建dist目录后可以打包了

from chatgpt-vercel.

hanpei avatar hanpei commented on June 5, 2024

我重新删除依赖,使用npm i 安装,并且手动创建dist,还是卡主
image
尝试了pnpm/npm/yarn
都不行...
还有什么方式能打包么

from chatgpt-vercel.

Related Issues (20)

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.