Coder Social home page Coder Social logo

Comments (6)

JDongKhan avatar JDongKhan commented on May 26, 2024

原因是@/uni_modules/uview-plus里面的

const pleaseSetTranspileDependencies = {},
	babelTest = pleaseSetTranspileDependencies?.test

导致的,按照注释给的地址增加了vue.config.js并添加内容

// vue.config.js,如没有此文件则手动创建
module.exports = {
	transpileDependencies: ['uview-ui']
}

npm install 后依然报错

这个文档的解决方案应该不适用通过插件市场导入的,请问有其他的解决方案吗?

from uview-plus.

ijry avatar ijry commented on May 26, 2024

直接启动示例工程演示项目试下

from uview-plus.

JDongKhan avatar JDongKhan commented on May 26, 2024

演示项目是强制使用uniapp-x,创建的项目没有看到有关任何uview的代码,而且我没研究过uniapp-x,uni-app x项目暂不支持预览 ,不知道如何启动查看效果。 uni_modules下没有uview。似乎跟我上面的场景不一样。

苏宁豆芽图片20240115104417737
苏宁豆芽图片20240115104534861
苏宁豆芽图片20240115105145413

from uview-plus.

JDongKhan avatar JDongKhan commented on May 26, 2024

HBuilder X版本:3.98

main.uts

import App from './App.uvue'

import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)

  return {
    app
  }
}

package.json

{
  "id": "hello-uvue",
  "name": "hello-uvue",
  "version": "1.0.0",
  "description": "uvue的vue语法示例工程",
  "main": "env.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "uvue",
    "uni-app2.0"
],
  "author": "",
"license": "ISC",
"displayName": "helllo uvue"
}

from uview-plus.

JDongKhan avatar JDongKhan commented on May 26, 2024

我使用npm方式就正常,使用uni_modules就不行

from uview-plus.

ijry avatar ijry commented on May 26, 2024

uniapp-x暂不兼容,uniapp-x需要后面单独出一个版本,与现有JS引擎底层不一样。

from uview-plus.

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.