Giter VIP home page Giter VIP logo

Comments (10)

dravenww avatar dravenww commented on August 15, 2024

不是index.html文件位置的问题,可以打开控制台看下报错,或者截图看下启动台

from wp2vite.

tom-hanks avatar tom-hanks commented on August 15, 2024

不是index.html位置的问题,可以打开读取文件看下报错,或者截图看下启动台

image

from wp2vite.

dravenww avatar dravenww commented on August 15, 2024

vite不支持require。

from wp2vite.

imvicchen avatar imvicchen commented on August 15, 2024

不是index.html文件位置的问题,可以打开控制台看下报错,或者截图看下启动台
我的控制台没有报错,这就离谱了

from wp2vite.

tom-hanks avatar tom-hanks commented on August 15, 2024

vite 不支持require。

那请问有什么办法 解决这个问题吗

from wp2vite.

tom-hanks avatar tom-hanks commented on August 15, 2024

vite 不支持require。

那请问有什么办法 解决这个问题吗

from wp2vite.

mushan0x0 avatar mushan0x0 commented on August 15, 2024

vite 不支持require。

那请问有什么办法 解决这个问题吗

用import

from wp2vite.

dravenww avatar dravenww commented on August 15, 2024

改代码,把所有的require改成import的方式去引用,非常老的项目不建议去转成vite,很多问题是没法去兼容的。

from wp2vite.

lq9958 avatar lq9958 commented on August 15, 2024

请问解决了吗?我切换成vite也是变成空白页面,浏览器控制台有个“脚本是module” 但是服务端返回的是text/html的报错

from wp2vite.

huangkesong avatar huangkesong commented on August 15, 2024

请问解决了吗?我切换成vite也是变成空白页面,浏览器控制台有个“脚本是module” 但是服务端返回的是text/html的报错

请问你的这个问题解决了吗?我和你的问题是一致的。

from wp2vite.

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.