ohanhi / elm-native-ui

[CLOSED] Experiment: mobile apps in Elm using React Native.
BSD 3-Clause "New" or "Revised" License
1.54k stars 76 forks source link

NavigationDemo compilation error: module NativeUI not found #52

Closed brezal closed 7 years ago

brezal commented 7 years ago
# brezal @ ~/ElmProject
$ npm run compile

> NavigationDemo@0.0.1 compile /Users/brezal/ElmProject
> elm make ./src/Main.elm --output elm.js

Some new packages are needed. Here is the upgrade plan.

  Install:
    elm-lang/core 5.0.0
    elm-lang/html 2.0.0
    elm-lang/virtual-dom 2.0.2

Do you approve of this plan? [Y/n]
Starting downloads...

  ● elm-lang/html 2.0.0
  ● elm-lang/virtual-dom 2.0.2

  ● elm-lang/core 5.0.0
Packages configured successfully!
I cannot find module 'NativeUi'.

Module 'ExampleRow' is trying to import it.

Potential problems could be:
  * Misspelled the module name
  * Need to add a source directory or new dependency to elm-package.json

npm ERR! Darwin 16.0.0
npm ERR! argv "/Users/brezal/.nvm/versions/node/v6.7.0/bin/node" "/Users/brezal/.nvm/versions/node/v6.7.0/bin/npm" "run" "compile"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! NavigationDemo@0.0.1 compile: `elm make ./src/Main.elm --output elm.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the NavigationDemo@0.0.1 compile script 'elm make ./src/Main.elm --output elm.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the NavigationDemo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     elm make ./src/Main.elm --output elm.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs NavigationDemo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls NavigationDemo
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/brezal/ElmProject/npm-debug.log
brezal commented 7 years ago

This also happened with the Counter example.

benansell commented 7 years ago

@brezal can you try running the following from the elm-native-ui/examples/NavigationDemo directory:

npm run compile
robertkluin commented 7 years ago

Probably missed the README that talks about elm_self_publish.

ferologics commented 7 years ago

This is inteded behaviour, the readme just doesn't explicitly state that

after you use elm_self_publish.py on one of the examples it'll compile

ohanhi commented 7 years ago

Does someone want to make a PR to improve that section of the README?

brezal commented 7 years ago

Thanks for all of the responses. There hasn't been much activity here in over a month. I will close the issue for now.