Giter Site home page Giter Site logo

npm引入fiyio失败 about fly HOT 7 CLOSED

wendux avatar wendux commented on August 11, 2024
npm引入fiyio失败

from fly.

Comments (7)

vino1994 avatar vino1994 commented on August 11, 2024

将整个mode_modules包删掉之后重新npm install也不行

from fly.

wendux avatar wendux commented on August 11, 2024

是node工程吗?

from fly.

vino1994 avatar vino1994 commented on August 11, 2024

不是的,是mpvue,我在Meituan-Dianping/mpvue#109 看到了大佬们的对话,好像npm完了之后不能直接引入要先在webpack里面的alias设置一下,然后才可以import进来使用,比知道理解的对不对?

from fly.

wendux avatar wendux commented on August 11, 2024

检查flyio的入口文件引用是否正确,flyio对于不同的平台,入口文件有的会不同,比如,如果你是微信小程序工程,就应该引入小程序的入口文件:

 var Fly=require("flyio/dist/npm/wx")//微信小程序入口

from fly.

vino1994 avatar vino1994 commented on August 11, 2024

感谢~

from fly.

excxapp avatar excxapp commented on August 11, 2024

好像还是有问题,mpvue的标准格式有没有呢,这个说的不清楚啊

from fly.

wendux avatar wendux commented on August 11, 2024

@cmideal mpvue中使用示例请参考 #35

from fly.

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.