Code Monkey home page Code Monkey logo

Comments (3)

Otto-J avatar Otto-J commented on August 19, 2024

感谢反馈,升级到最新的 @3.0.0-alpha-4010920240606001 是否可以解决你的问题

如果不可以的话:

使用标准模板可以启动吗?
请提供复现工程或者单页面代码,排查下是通用的方法有问题,还是有边缘情况没考虑到。
https://uniapp.dcloud.net.cn/quickstart-cli.html#%E5%88%9B%E5%BB%BAuni-app

from uni-app.

sonofmagic avatar sonofmagic commented on August 19, 2024

项目升级到 @3.0.0-alpha-4010920240606001 的确解决了这个问题。

复现工程:

✅ uni-app 3.0.0-4000820240401001 版本,正常运行

uni-app-vite-vue3-tailwind-vscode-template/main 分支

❌ uni-app 3.0.0-alpha-4010520240507001 版本,运行失败

uni-app-vite-vue3-tailwind-vscode-template/uni-app-3.0.0-alpha-4010520240507001 分支

Note

一开始升级到 3.0.0-alpha-4010520240507001 ,报出的是上面 #4977 (comment) 那个错误,后来我尝试升级 uni-app 相关依赖到 3.0.0-alpha-4010920240606001 之后,回到这个分支重新 yarn 安装包之后,现在不报那个 @vue/compiler-core 的错误了,反而报了:

[plugin:uni:mp-using-component] Expected ',' or '}' after property value in JSON at position 37
at pages/index/index.vue:1:0

不过这个问题,我看到其他 issue 里面已经有解了 #4952

✅ uni-app 3.0.0-alpha-4010920240606001 版本,正常运行

uni-app-vite-vue3-tailwind-vscode-template/uni-app-3.0.0-alpha-4010920240606001 分支

复现步骤

  1. fork / clone 上述链接中的项目 指定分支
  2. 执行 yarn 安装包
  3. 执行 yarn dev 运行,此时可见错误出现于命令行。

预期行为

执行 yarn devyarn build 命令,正常运行,且可见于微信开发者工具

from uni-app.

Otto-J avatar Otto-J commented on August 19, 2024

嗯,是的,目前是已知、已解决的问题。最新版本的的 alpha 可以解决。

感谢再次反馈,后续如果仍有问题请继续留言

from uni-app.

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.