Code Monkey home page Code Monkey logo

Comments (4)

giantss avatar giantss commented on July 25, 2024 2

/node_modules/taro-f2/dist/h5/index.js
加一行 import Taro from '@tarojs/taro' 导入 Taro 可以暂时解决这个问题 @Yana5417

from taro-f2.

Yana5417 avatar Yana5417 commented on July 25, 2024

按照README.md中提供的方法,写了一个范例。
npm run dev:h5的时候提示 Compiled successfully!
但是控制台打印结果报错:**Taro is not defined**
具体报错信息如下:

ReferenceError: Taro is not defined at eval (index.js?bd59:4) at Module../node_modules/taro-f2/dist/h5/index.js (vendors~index_index.js:151) at __webpack_require__ (app.js:767) at fn (app.js:130) at eval (index.js:6) at Module../.temp/pages/index/index.js (index_index.js:11) at __webpack_require__ (app.js:767) at fn (app.js:130) at <anonymous>

请问是什么原因?怎么解决呢?

我这边检查到是taro-f2这个node包里面,dist/h5/index.js中没有引入Taro,请问这个Bug可以处理一下吗?

from taro-f2.

giantss avatar giantss commented on July 25, 2024

+1
image

from taro-f2.

zhangjie1314 avatar zhangjie1314 commented on July 25, 2024

这个问题能处理下吗 @xioxin

from taro-f2.

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.