鸿蒙开发中的一些小问题

Q1:This custom component must have a ‘build’ function.

源码

@Component
export default struct ProgressEditPanel {
   
}

问题
源码中没有出现build方法
解决

@Component
export default struct ProgressEditPanel {
   
build() {
   }
}

Q2:page_title is not translated into en_US(American English)

提示:page_title is not translated into en_US(American English)
修改:三个string.json文件都需要出现相同的name和value才行,如果根据提示进行修改
在这里插入图片描述

Q3:Module ‘“…/CustomComponent/CustomButton”’ declares ‘CustomButton’ locally, but it is not exported.

源码

struct CustomButton {
   }

问题
没有将结构跑出来
解决

export struct CustomButton {
   }

相关推荐

  1. Word使用一些烦人问题

    2023-12-26 23:58:01       28 阅读
  2. web前端开发需要注意一些常见问题

    2023-12-26 23:58:01       29 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-26 23:58:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-26 23:58:01       100 阅读
  3. 在Django里面运行非项目文件

    2023-12-26 23:58:01       82 阅读
  4. Python语言-面向对象

    2023-12-26 23:58:01       91 阅读

热门阅读

  1. ansible_jinja2模板的使用

    2023-12-26 23:58:01       45 阅读
  2. 设计模式笔记

    2023-12-26 23:58:01       45 阅读
  3. MySql 事务隔离级别详解

    2023-12-26 23:58:01       50 阅读
  4. python初试四

    2023-12-26 23:58:01       67 阅读
  5. 单体项目-动态上下文问题

    2023-12-26 23:58:01       57 阅读
  6. React入门介绍

    2023-12-26 23:58:01       61 阅读
  7. python异常之try/finally分句

    2023-12-26 23:58:01       49 阅读
  8. 2023年大模型回顾

    2023-12-26 23:58:01       46 阅读
  9. orangepi——基于官方外设开发

    2023-12-26 23:58:01       64 阅读