Giter Club home page Giter Club logo

Comments (2)

shifeiyang avatar shifeiyang commented on May 28, 2024

在真机上是这样报错的,是不是这个env需要在哪里进行配置 this.fetch = env().platform.fetch;

"undefined is not an object (evaluating '(0,l.env)().platform.fetch')", line: 1183, column: 144156, sourceURL: "https://usr//pages/train/app-service.js", stack: "e@https://usr//pages/train/app-service.js:1183:144156↵k@https://usr//pages/train/app-service.js:1183:149510↵value@https://usr//pages/train/app-service.js:1183:458213↵@https://usr//pages/train/app-service.js:1183:458556↵@https://usr//app-service.js:3624:515624↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵f@[native code]↵f@https://usr//app-service.js:3624:515892↵@https://usr//app-service.js:3624:521489↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵_tmp400@https://usr//app-service.js:3624:521944↵@https://usr//app-service.js:3624:517507↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵@https://usr//app-service.js:3624:517574↵@https://usr//app-service.js:3624:536440↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵a@[native code]↵a@https://usr//app-service.js:3624:536773↵@https://usr//app-service.js:3624:537521↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵o@[native code]↵o@https://usr//app-service.js:3624:537580↵@https://usr//app-service.js:3624:537814↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵@https://usr//app-service.js:3624:537855↵j@https://lib/WASubContext.js:1:70746↵@https://usr//app-service.js:3624:537199↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵_tmp409@https://usr//app-service.js:3624:537919↵@https://usr//app-service.js:3624:515624↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵f@[native code]↵f@https://usr//app-service.js:3624:515892↵@https://usr//app-service.js:3624:521489↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵_tmp400@https://usr//app-service.js:3624:521944↵@https://usr//app-service.js:3624:517507↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵@https://usr//app-service.js:3624:517574↵@https://usr//app-service.js:3624:536440↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵a@[native code]↵a@https://usr//app-service.js:3624:536773↵@https://usr//app-service.js:3624:537521↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵o@[native code]↵o@https://usr//app-service.js:3624:537580↵@https://usr//app-service.js:3624:537814↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵@https://usr//app-service.js:3624:537855↵j@https://lib/WASubContext.js:1:70746↵@https://usr//app-service.js:3624:537199↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵_tmp409@https://usr//app-service.js:3624:537919↵@https://usr//pages/train/app-service.js:1183:20385↵@https://usr//pages/train/app-service.js:1183:6579↵@https://usr//pages/train/app-service.js:1183:5621↵j@https://lib/WASubContext.js:1:70746↵f@https://usr//pages/train/app-service.js:1183:5410↵@https://usr//pages/train/app-service.js:1183:4110↵@https://usr//pages/train/app-service.js:1183:6579↵@https://usr//pages/train/app-service.js:1183:5621↵j@https://lib/WASubContext.js:1:70746↵f@https://usr//pages/train/app-service.js:1183:5410↵@https://usr//app-service.js:3624:515624↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵f@[native code]↵f@https://usr//app-service.js:3624:515892↵@https://usr//app-service.js:3624:521489↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]↵_tmp400@https://usr//app-service.js:3624:521944↵@https://usr//app-service.js:3624:517507↵@[native code]↵h@https://lib/WAServiceMainContext.js:1:41703↵anonymous@[native code]"}

from wx-tfjs-demo.

HunterXuan avatar HunterXuan commented on May 28, 2024

小程序里没有fetch这个方法,需要先引入,然后配置给tfjs,参考这里的代码:https://github.com/HunterXuan/wx-tfjs-demo/blob/master/miniprogram/app.ts#L32

from wx-tfjs-demo.

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.