Comments (7)
That is just for the sourcemap. There is something weird with sourcemaps for scala.js that I haven't figured out yet, I know @lihaoyi libraries have the same issue. you may want to try relativeSourceMaps
in your build configuration.
from scalajs-react.
thanks that fixes that issue. I am now just left with
Uncaught TypeError: Cannot read property 'createClass' of undefined ReactComponentB.scala:109
ScalaJS.c.Ljapgolly_scalajs_react_ReactComponentB$B2$B3$B4.create__O ReactComponentB.scala:109
ScalaJS.c.Lakka_http_test_ScalaReactSpeedTest$.example1__Lorg_scalajs_dom_Node__Ljapgolly_scalajs_react_ComponentScopeM ScalaReactSpeedTest.scala:24
ScalaJS.c.Lakka_http_test_ScalaReactSpeedTest$.main__V ScalaReactSpeedTest.scala:17
ScalaJS.c.Lakka_http_test_ScalaReactSpeedTest$.$$js$exported$meth$main__O ScalaReactSpeedTest.scala:15
ScalaJS.c.Lakka_http_test_ScalaReactSpeedTest$.main ScalaReactSpeedTest.scala:15
(anonymous function)
which I suppose means that there is some library I am not importing....
from scalajs-react.
You have to include the react-with-addons.js
on your page before your app.
from scalajs-react.
Ah that does it yes. I was going by your examples that don't include it and work nicely. I thought all of those dependencies would be placed in the ./target/scala-2.11/http-model-uri-browsertest-jsdeps.js
file that I have included.
from scalajs-react.
The example uses jsDependencies which includes the react webjar, so it's a bit more convoluted. Glad it worked!
from scalajs-react.
Ok, I just simplified the jsDependencies
code in the build file as shown in the commit b7030b5 and it worked without the js import in the html. It looks like I had it all there but just was being a bit too clever by re-using your useReact
function.
from scalajs-react.
Glad it all worked out @bblfish, and thanks @ddispaltro for being so helpful! 😉 🍻
from scalajs-react.
Related Issues (20)
- Export `assertOuterHTML` HOT 1
- Deprecate `Mounted` component types HOT 2
- Add default arg to `ReactTestUtils.withRendered` HOT 1
- ScalaFnComponent is anonymous HOT 2
- Consider using `DocumentFragments` in `ReactTestUtils` HOT 1
- Re-evaluate `ComponentDom` post- React 18
- Is there a way to integrate Components with cats.effect.Ref? HOT 1
- Ref not always set HOT 2
- Syntax to integrate `useContext` with context function in Scala 3 HOT 1
- Compilation fails in Scala 3 when deriving Reusability for case classes with multiple parameter groups HOT 1
- Missing getDerivedStateFromError
- Missing / misspelled packages in MODULES.md HOT 1
- Add support for Discussions tab in Github HOT 1
- Modern testing recipe?
- Cannot mix static and dynamic routes even if conditional
- A minimal setup fails with Scala 3 HOT 5
- Provide default IO/SyncIO error handler for component
- ScalaFnComponent doesn't include displayName HOT 1
- Another way to define hook components
- AsyncCallback + cats, gracefully handling errors with EitherT: unexpected behaviour HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalajs-react.