scalajs-react-interface / sri

Apache License 2.0
151 stars 8 forks source link

Getting started results in `not found: value DrawerViewItems` #5

Closed marcintustin closed 7 years ago

marcintustin commented 7 years ago

This is with reference to this version of the quick start: https://github.com/scalajs-react-interface/sri/blob/479c6744b317fc41889f66cbdab9bc863a0cda41/docs/GettingStarted.md

When following the steps for the Drawer Navigation under MacOSX 10.12.5 with XCode 8.3.2, the sbt step results in this:

Marcins-MacBook-Pro-2:bobo marcin$ sbt ~ios:dev
[info] Loading project definition from /Users/marcin/Documents/code/bobo/project
[info] Updating {file:/Users/marcin/Documents/code/bobo/project/}bobo-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to bobo (in build file:/Users/marcin/Documents/code/bobo/)
[info] Updating {file:/Users/marcin/Documents/code/bobo/}bobo...
[info] Resolving org.eclipse.jetty#jetty-continuation;8.1.16.v20140903 ...
[info] Done updating.
[info] Compiling 7 Scala sources to /Users/marcin/Documents/code/bobo/target/scala-2.11/classes...
[error] /Users/marcin/Documents/code/bobo/src/main/scala/com/marcintustin/bobo/components/package.scala:22: not found: value DrawerViewItems
[error]             DrawerViewItems(props)
[error]             ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 4 s, completed May 26, 2017 12:02:20 PM
1. Waiting for source changes... (press enter to interrupt)

No errors occur at previous stages.

Full steps to reproduce below:

sbt new scalajs-react-universe/mobile.g8 -b drawer-navigation
# enter project name bobo; accept default package name sri.mobile.template
cd bobo
react-native init bobo
mv bobo/android/ android
mv bobo/ios/ ios
npm install
react-native link react-native-vector-icons
# Switch to new shell
Marcins-MacBook-Pro-2:bobo marcin$ sbt ~ios:dev
[info] Loading project definition from /Users/marcin/Documents/code/bobo/project
[info] Updating {file:/Users/marcin/Documents/code/bobo/project/}bobo-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to bobo (in build file:/Users/marcin/Documents/code/bobo/)
[info] Updating {file:/Users/marcin/Documents/code/bobo/}bobo...
[info] Resolving org.eclipse.jetty#jetty-continuation;8.1.16.v20140903 ...
[info] Done updating.
[info] Compiling 7 Scala sources to /Users/marcin/Documents/code/bobo/target/scala-2.11/classes...
[error] /Users/marcin/Documents/code/bobo/src/main/scala/sri/mobile/template/components/package.scala:22: not found: value DrawerViewItems
[error]             DrawerViewItems(props)
[error]             ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 4 s, completed May 26, 2017 12:22:11 PM
1. Waiting for source changes... (press enter to interrupt)
marcintustin commented 7 years ago

Incidentally, stack navigation does not have the same problem:

Marcins-MacBook-Pro-2:bobo marcin$ sbt ~ios:dev
[info] Loading project definition from /Users/marcin/Documents/code/bobo/project
[info] Updating {file:/Users/marcin/Documents/code/bobo/project/}bobo-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to bobo (in build file:/Users/marcin/Documents/code/bobo/)
[info] Updating {file:/Users/marcin/Documents/code/bobo/}bobo...
[info] Resolving org.eclipse.jetty#jetty-continuation;8.1.16.v20140903 ...
[info] Done updating.
[info] Compiling 8 Scala sources to /Users/marcin/Documents/code/bobo/target/scala-2.11/classes...
[info] Fast optimizing /Users/marcin/Documents/code/bobo/assets/scalajs-output-ios.js
[success] Total time: 10 s, completed May 26, 2017 12:39:07 PM
1. Waiting for source changes... (press enter to interrupt)
chandu0101 commented 7 years ago

Rakshak Bot : @marcintustin you're not allowed to create issues here, please post your question here, if its a reproducible bug one of sri maintainers will create an issue back here will inform you about when/how it will be fixed.