Giter Site home page Giter Site logo

Comments (4)

luics avatar luics commented on May 5, 2024

You can fix the issue by following steps, under weex project root(not playground root), run:

  1. npm install , just once
  2. npm run serve, I guess you did not run this command?

see https://github.com/alibaba/weex/tree/master#android for more details

BTW, you can get html5 preview in browser with url http://192.168.31.240:12580/index.html?page=./examples/build/index.js

from weex.

xqbumu avatar xqbumu commented on May 5, 2024

@luics
the examplex/build/index.js file is diff from ./android/playground/app/src/main/assets/index.js

./examplex/build/index.js code begin with

define('@weex-component/index', function (require, exports, module) {

;
  module.exports = {
    data: function () {return {
      cases: [

./android/playground/app/src/main/assets/index.js begin with

define('@weex-component/ui-list-item', function (require, exports, module) {

;
  module.exports = {
    data: function () {return {

and I don't change any code in ./examples/index.we

I can get get page from http://192.168.31.240:12580/index.html?page=./examples/build/hello.js with

Hello World.

and then I copy ./android/playground/app/src/main/assets/index.js to ./examplex/build/index.js, every is ok.

so, I think there is something wrong in compile ./example/index.we.

my os is Debian, with nodejs v5.10.1

from weex.

xqbumu avatar xqbumu commented on May 5, 2024

@luics
I change the file of examples/indexItem.we to examples/intexitem.we, then the question is resolved.

Thank you!~

but I have some doubt about case sensitive about template label.
how did the compiler find the right template by label name, dose is case sensitive or not?

from weex.

luics avatar luics commented on May 5, 2024

@xqbumu got it.

I guess it should be difference on case sensitivity between OSs. It works on my OSX 10.11.1 .
I will change all example file names to dash separated words, each word is lower case, e.g. index-item.we. I hava commit this to https://github.com/alibaba/weex/tree/example/examples

Thanks for your issue to expose the hidden bug.

from weex.

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.