xdoer / PreQuest

A Modular And Pluggable Solution For HTTP Request.
https://pre-quest.vercel.app
MIT License
86 stars 14 forks source link

在Taro 3.4.2 版本编译报错 #48

Open 18657769868 opened 1 year ago

18657769868 commented 1 year ago

myApp@1.0.0 build:weapp taro build --type weapp

👽 Taro v3.4.2

启动 开发者工具-项目目录 D:\Demo\myApp\dist 生成 工具配置 D:\Demo\myApp\dist/project.config.json

编译 发现入口 src/app.ts 编译 发现页面 src/pages/index/index.tsx 🙅 编译失败. 2022/9/10 10:55:15

./node_modules/@xdoer/x/lib/esm/asyncPromise.js 3:10 Module parse failed: Unexpected token (3:10) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | // @ts-nocheck | export class AsyncPromise {

loading = false; | | constructor() {

xdoer commented 1 year ago
image

这样配试一下 https://pre-quest.vercel.app/#/compatible

modulePath.indexOf("@prequest") > -1 || modulePath.indexOf("@xdoer/x") > -1