uni-helper / vitesse-uni-app

由 Vite & uni-app 驱动的跨端快速启动模板
https://vitesse-docs.netlify.app/
MIT License
361 stars 38 forks source link

ReferenceError: process is not defined #21

Closed tanwenchao closed 1 year ago

tanwenchao commented 1 year ago

描述问题

运行 dev:mp-weixin在微信小程序,报错ReferenceError: process is not defined

复现

ReferenceError: process is not defined

系统信息

System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 37.89 MB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 18.0.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.5.1 - /usr/local/bin/npm
    pnpm: 8.3.1 - /usr/local/bin/pnpm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 116.0.5845.187
    Safari: 14.1.2

使用的包管理器

npm

核对

tanwenchao commented 1 year ago
image
tanwenchao commented 1 year ago
image
KeJunMao commented 1 year ago

不是本模板的问题~

似乎是你或者你引用的其他库导入了 babel-type