Skip to content

新创建的小程序,vscod打开存在错误 #18137

@cnscottluo

Description

@cnscottluo

请先确认

  • 我已搜索并确定这个提交不是重复的

Taro 版本

v4

相关领域

None

使用框架

Vue3

相关平台

  • 所有平台
  • Web 端(H5)
  • 移动端(React-Native)
  • 鸿蒙(Harmony)
  • 鸿蒙容器(Harmony Hybrid)
  • ASCF 元服务
  • 快应用(QuickApp)
  • 所有小程序
  • 微信小程序
  • 企业微信小程序
  • 京东小程序
  • 百度小程序
  • 支付宝小程序
  • 支付宝 IOT 小程序
  • 头条小程序
  • QQ 小程序
  • 钉钉小程序
  • 飞书小程序
  • 快手小程序

小程序基础库版本

No response

问题描述

tsconfig.json错误

Image

还有个sass的错误,通过之前的issue,安装npm i @types/sass@1.43.1解决

config/index.ts错误

Image

复现链接

复现步骤

创建项目后使用vscode打开

环境信息

👽 Taro v4.1.5


  Taro CLI 4.1.5 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 4.0.2 - /opt/local/bin/fish
    Binaries:
      Node: 22.15.0 - ~/.local/state/fnm_multishells/91789_1754373720884/bin/node
      npm: 10.9.2 - ~/.local/state/fnm_multishells/91789_1754373720884/bin/npm
    npmPackages:
      @tarojs/cli: 4.1.5 => 4.1.5 
      @tarojs/components: 4.1.5 => 4.1.5 
      @tarojs/helper: 4.1.5 => 4.1.5 
      @tarojs/plugin-framework-vue3: 4.1.5 => 4.1.5 
      @tarojs/plugin-platform-alipay: 4.1.5 => 4.1.5 
      @tarojs/plugin-platform-h5: 4.1.5 => 4.1.5 
      @tarojs/plugin-platform-harmony-hybrid: 4.1.5 => 4.1.5 
      @tarojs/plugin-platform-jd: 4.1.5 => 4.1.5 
      @tarojs/plugin-platform-qq: 4.1.5 => 4.1.5 
      @tarojs/plugin-platform-swan: 4.1.5 => 4.1.5 
      @tarojs/plugin-platform-tt: 4.1.5 => 4.1.5 
      @tarojs/plugin-platform-weapp: 4.1.5 => 4.1.5 
      @tarojs/runtime: 4.1.5 => 4.1.5 
      @tarojs/shared: 4.1.5 => 4.1.5 
      @tarojs/taro: 4.1.5 => 4.1.5 
      @tarojs/vite-runner: 4.1.5 => 4.1.5 
      babel-preset-taro: 4.1.5 => 4.1.5 
      eslint-config-taro: 4.1.5 => 4.1.5

开源贡献

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-vue3Framework - Vue 3T-alipayTarget - 编译到支付宝小程序T-ddT-feishuT-jdTarget - 编译到京东小程序T-kwaiT-qqTarget - 编译到 QQ 小程序T-qyT-swanTarget - 编译到百度小程序T-ttTarget - 编译到字节跳动小程序T-weappTarget - 编译到微信小程序V-4Version - 4.xbugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions