GithubHelp home page GithubHelp logo

error with webpack-hot-client about kit HOT 10 CLOSED

jeetiss avatar jeetiss commented on May 20, 2024 2
error with webpack-hot-client

from kit.

Comments (10)

ferdinandsalis avatar ferdinandsalis commented on May 20, 2024 1

@johno indeed this only occurs with global installs. It works when it is a local dependency and that is how I am using it now. These are the versions I am using node 9.11.1, npm 6.1.0 and kit 1.0.37.

Anyway thanks for kit. I love the simplicity of it.

from kit.

ferdinandsalis avatar ferdinandsalis commented on May 20, 2024

I am getting the same error …

from kit.

johno avatar johno commented on May 20, 2024

Thanks for the report! Do you mind providing your kit, npm, and node versions please?

Have you also tried running the cli via your package.json? I'm wondering if this error is specific to global installs.

from kit.

beeant avatar beeant commented on May 20, 2024

I'm having the same problem...

from kit.

vicentedealencar avatar vicentedealencar commented on May 20, 2024

I am trying this for the first time and got the same issue here with global installation...
I'm using node 8.9.1 npm 5.5.1 kit 1.0.37
Installing it as a devDependency works ok
Maybe updating the readme section Getting Started is a good idea

kudos for the amazing project

from kit.

jxnblk avatar jxnblk commented on May 20, 2024

Thanks for reporting this! I can confirm that I have seen the same issue on one computer, but not the other. In #179 I'm attempting to change the webpack resolve as mentioned in webpack-contrib/webpack-hot-client#62, and have published a prerelease. If anyone can help by trying to install the following to confirm that it works as a global install, that'd be super helpful

npm i -g @compositor/kit-cli@alpha

from kit.

jeetiss avatar jeetiss commented on May 20, 2024

I have some errors with resolving babel-runtime

ERROR in ../components/Button.js
Module not found: Error: Can't resolve 'babel-runtime/helpers/taggedTemplateLiteral' in '/Users/jeetiss/Projects/systemo/components'
 @ ../components/Button.js 7:30-84
 @ ./Button.js
 @ . sync nonrecursive \.(js|mdx|jsx)$
 @ /Users/jeetiss/n/lib/node_modules/@compositor/kit-cli/node_modules/@compositor/x0/lib/entry.js
 @ multi /Users/jeetiss/n/lib/node_modules/@compositor/kit-cli/node_modules/@compositor/x0/lib/entry

from kit.

jeetiss avatar jeetiss commented on May 20, 2024

I fix this in #180

from kit.

johno avatar johno commented on May 20, 2024

We just published another release that should hopefully solve the webpack-hot-client error once and for all.

I believe the issue is similar to the babel-runtime resolution as well. The underlying issue appears to be a result of @compositor/x0 sometimes being nested within @compositor/kit-cli/node_modules and sometimes not.

Haven't a clue why this is occurring, but was able to fix it for webpack-hot-client via c8r/x0#67 since it added an alias that relied on a flat installation (which isn't always the case).

from kit.

johno avatar johno commented on May 20, 2024

Going to close this as it seems to be fixed. If anyone encounters this error with the latest version of kit-cli please open up a new issue.

from 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.