Coder Social home page Coder Social logo

Comments (2)

lilactown avatar lilactown commented on July 18, 2024

That's really strange; when I run the :dev build in this repo, it wouldn't work unless I used the glob syntax. 😬

Here's the error I get when I try and run your code change from a REPL:

TypeError: Cannot read property 'Component' of undefined
    at Object.createComponent$$module$helix$impl$class [as createComponent] (/js/cljs-runtime/module$helix$impl$class.js:26:93)
    at helix$core$create_component (/js/cljs-runtime/helix.core.js:158:32)

AFAICT I think your code should be correct, but I'm unsure why there would be this discrepancy between a React Native and a browser build. I'll bring it up to thheller and see if he has any insight.

from helix.

alidcast avatar alidcast commented on July 18, 2024

yea, they're different built targets in shadow-cljs so they're likely being handled differently

specially since react native code isn't usually transpiled in packages, whereas browser code usually is... so maybe that's why glob syntax didn't work in former scenario but no clue why destructuring an import wouldn't work

from helix.

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.