Giter Club home page Giter Club logo

Comments (5)

xhong0 avatar xhong0 commented on May 15, 2024

@githublyp 辛苦看一下

  1. 项目是从原先okam为0.3版本的项目中执行okam upgrade project升级的吗?(理论上这种情况下upgrade project 包版本是不会从0.3升为0.4只会升.3的小版本,你看看本地okam-build okam-core 的具体版本是多少?okam --version && npm ls okam-build okam-core);
  2. build过程中 或者 运行过程中有没有什么报错?
    若是 0.3 升级到了 0.4 有两个 breakchange: 看看是否有用到下面两个 breakchange,改完能否解决问题?
    • okam-core: break change 移除 App/页面/自定义组件实例上下文的 $global 属性, 具体解决方案
    • okam-build: break change 变更构建配置 component.template.transformTags 模板标签转换配置定义,新增构建 API reverseTagMap 进行兼容转换,具体解决方案
  3. 若用cli构建的项目,你选择的模板、脚本、样式语法分别是?是否有用到 tag 标签转换?
    若上面不能解决,描述一下复现场景,方便的话可以给个问题的代码示例,我具体看看

from okam.

githublyp avatar githublyp commented on May 15, 2024

直接用okam init test之后,运行npm run dev:wx 打包之后生成wx_dist但是app.js 等放在src目录下;还有在app.less中@import其他样式的时候打包不报错,但是不会引入okam框架;也就是wx_dist/common/下没有okam等框架文件:
image

from okam.

xhong0 avatar xhong0 commented on May 15, 2024

本地 okam-cli 版本 确定是多少?okam init test 时候 各选项怎么选择的? 创建过程中有报错吗? 创建之后是按以下顺序执行吗?

cd xxx  // xxx 替换成刚创建的项目路径
npm install // 此过程包安装是否成功?
npm run dev: wx // 此过程是否有报错?

你看看有没有稳定复现路径,我这边用okam-cli:0.1.0-beta.0试了几下是正常的,方便的话 给个问题的代码示例

from okam.

githublyp avatar githublyp commented on May 15, 2024

image

image

from okam.

wuhy avatar wuhy commented on May 15, 2024

@githublyp 更新到 0.4.0-beta.1 再看下,我先把 issue 关闭,如有问题再打开,thks~

from okam.

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.