GithubHelp home page GithubHelp logo

编译报错问题! about dinky HOT 14 CLOSED

datalinkdc avatar datalinkdc commented on August 30, 2024
编译报错问题!

from dinky.

Comments (14)

aiwenmo avatar aiwenmo commented on August 30, 2024

请问您是在 IDEA 2020 里进行编译的还是其他方式进行编译的呢

from dinky.

A-little-bit-of-data avatar A-little-bit-of-data commented on August 30, 2024

请问您是在 IDEA 2020 里进行编译的还是其他方式进行编译的呢

我是Windows10下的cmd编译的

from dinky.

A-little-bit-of-data avatar A-little-bit-of-data commented on August 30, 2024

请问您是在 IDEA 2020 里进行编译的还是其他方式进行编译的呢

在idea2021内编译过,显示的这个
image
但是没找到文档里的build文件夹和tar.gz包

from dinky.

aiwenmo avatar aiwenmo commented on August 30, 2024

报错提示前端模块打包失败,请尝试在dlink-web目录下单独使用 npm build 对 react 进行打包,查看是否能正确打包

from dinky.

A-little-bit-of-data avatar A-little-bit-of-data commented on August 30, 2024

npm build 对 react 进行打包

是执行这个命令嘛,npm install -g umi?

from dinky.

aiwenmo avatar aiwenmo commented on August 30, 2024

npm install -g umi 是在全局目录安装 umi ,来解决dlink 的 npm build 时 umi 报错问题。

from dinky.

A-little-bit-of-data avatar A-little-bit-of-data commented on August 30, 2024

npm install -g umi 是在全局目录安装 umi ,来解决dlink 的 npm build 时 umi 报错问题。

这个我不太会 ,请问之前说的使用 npm build 对 react 进行打包,这个命令是什么?

from dinky.

aiwenmo avatar aiwenmo commented on August 30, 2024

嗯请先尝试在dlink-web目录下运行 npm install,执行完成后再执行 npm start。此处主要是 react 项目打包的流程。

from dinky.

A-little-bit-of-data avatar A-little-bit-of-data commented on August 30, 2024

嗯请先尝试在dlink-web目录下运行 npm install,执行完成后再执行 npm start。此处主要是 react 项目打包的流程。

image 一直卡在这里了

image
image

from dinky.

aiwenmo avatar aiwenmo commented on August 30, 2024

npm7 对 peerDependencies 要求很严格,npm6则兼容。可以使用提示中的 --force 或 --legacy-peer-deps 的两个参数忽略,或者直接使用 npm6。

from dinky.

A-little-bit-of-data avatar A-little-bit-of-data commented on August 30, 2024

npm7 对 peerDependencies 要求很严格,npm6则兼容。可以使用提示中的 --force 或 --legacy-peer-deps 的两个参数忽略,或者直接使用 npm6。

image
好像是dlink-web这个项目不能正常打包

from dinky.

aiwenmo avatar aiwenmo commented on August 30, 2024

删掉node_modules文件夹, 重新执行下 npm install 试试看,因为此前你安装失败了,依赖包可能不完整。

from dinky.

A-little-bit-of-data avatar A-little-bit-of-data commented on August 30, 2024

删掉node_modules文件夹, 重新执行下 npm install 试试看,因为此前你安装失败了,依赖包可能不完整。

image

from dinky.

aiwenmo avatar aiwenmo commented on August 30, 2024

npm -v 查看npm是否正常,如果报错需要重新安装 node。这些前端问题均可以通过查阅资料解决,请先查阅,如仍不能解决可以再提。

from dinky.

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.