Giter Site home page Giter Site logo

Comments (7)

element-software avatar element-software commented on July 23, 2024 1

Hi @shannonhochkins sorry I did not provide this in my first post.

I'm using Node v18.16.1 and npm v9.7.2. It's a boilerplate Nextjs app (npx create next app with typescript), so everything is pretty much standard out of the box config. I've only added Tailwind to it, plus hakit/core and hakit/components.

I've done the usual delete node_modules and re-install etc. but no go unfortunately. I'm gonna spin up a fresh app and give it another try and will update you.

Again I can't express my gratitude enough to see your great work, I also commented on your Reddit post (my username is l19bal on Reddit). Very excited to make use of these components to build beautiful dashboards in a way I understand better (I'm a senior software engineer, and I don't like YAML aka Lovelace).

Thanks!

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 23, 2024 1

I can replicate with a very basic nextjs app - leave it with me I'll have it solved today for you :)

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 23, 2024 1

I believe this may have something to do with how nextjs decides what is a client/server component, are you using the 'use client' directive? I don't know a whole lot about nextjs, but i was able to replicate it initially, even when including the use client directive it would say it can't find the window object, this may cause issues storing the tokens on local storage or using the RoomCard hash links

Either way, I've just published new versions of core/components and the issue has been resolved (at least in my simple test) - please let me know if you're seeing issue's

Thankyou for your kind words! Any more feedback / suggestions please throw them my way! I'm doing my best to ensure this is a seamless project with little errors but it's obviously hard to catch everything :)

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 23, 2024

Hi @element-software , would you mind providing replicatable steps? What version of node/npm are you using, what bundler?

I do test this before i release and I hadn't seen this issue before, but i did make a few core changes would could have impacted, but if you can point me in the right direction on how to replicate it i'll sort it out for you :)

Are you using commonjs or esm? (import or require) - which version of react? :D

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 23, 2024

@element-software have you managed to test it out yet?

from ha-component-kit.

element-software avatar element-software commented on July 23, 2024

Hi @shannonhochkins apologies for the delay. Yes I've updated them as below:

    "@hakit/components": "^1.0.17",
    "@hakit/core": "^1.0.14",

It all seems to be working as before! Thank you for this!!

from ha-component-kit.

shannonhochkins avatar shannonhochkins commented on July 23, 2024

Awesome! Thankyou

from ha-component-kit.

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.