Coder Social home page Coder Social logo

Comments (9)

syt123450 avatar syt123450 commented on July 21, 2024

It may be because we have not add three as dependency in package.json, we may try it in ten hours, I hope it can work.

from giojs.

zchholmes avatar zchholmes commented on July 21, 2024

@BoTime, do you mean after you run the command "npm install giojs --save", you can immediately receive the message, or after installing, then run some js code with the giojs, you get the warning?

from giojs.

zchholmes avatar zchholmes commented on July 21, 2024

@syt123450 For sure, it's from the package.json. Now in the package.json, the dependencies is empty, like:
... "dependencies": {}, ...
I think someone modified the package.json, since when I first publish "gio.js", the "dependencies" is fine, i.e. contains "three.js".

from giojs.

syt123450 avatar syt123450 commented on July 21, 2024

When I add three and stats dependencies to giojs, it still can not be automatically install when I install giojs @zchholmes

from giojs.

zchholmes avatar zchholmes commented on July 21, 2024

I just tried on my test project, there's no problem about the dependency, i.e. three and stats can be imported the same as the giojs installed.

@syt123450 Can you check the "package.json" of "giojs" in the "node_modules" directory?

from giojs.

syt123450 avatar syt123450 commented on July 21, 2024

try it in our react-giojs folder, if we remove the "three" and "stats.js" dependencies from our package, when we run npm install, they will not be install to node_module

from giojs.

zchholmes avatar zchholmes commented on July 21, 2024

I think that's what suppose happened, since you removed from the package.json.

Any time you want to include and dependencies, you have to make sure you include it in the package.json "dependencies".

We should consider "giojs" and "react-giojs" as two separated npm projects, which means we need two package.json files to manage each of them.

from giojs.

zchholmes avatar zchholmes commented on July 21, 2024

I have no dependency issue when I npm install "giojs" or "react-giojs"

from giojs.

syt123450 avatar syt123450 commented on July 21, 2024

Add dependencies can solve this problem.

from giojs.

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.