Git Product home page Git Product logo

Comments (9)

 avatar commented on May 18, 2024

@cvg1 There was a bug in the bundle system. Try latest dev and bundle again. The files are now located in packages/inferno/dist

from inferno.

cvg1 avatar cvg1 commented on May 18, 2024

i can confirm that packages are being built into path you've specified.
i've altered the relative imports to:

import Inferno from './static/vendor/inferno/packages/inferno/dist/inferno.min.js';
import InfernoDOM from './static/vendor/inferno/packages/inferno/dist/inferno-dom.min.js';
import InfernoComponent from './static/vendor/inferno/packages/inferno/dist/inferno-component.min.js';

however, behavior reminds the same.

from inferno.

trueadm avatar trueadm commented on May 18, 2024

This should be all fixed in the latest master/release.

from inferno.

cvg1 avatar cvg1 commented on May 18, 2024

i've installed now 0.5.18 from npm again and using these imports again:

import Inferno from 'inferno';
import InfernoDOM from 'inferno-dom';
import InfernoComponent from 'inferno-component';

however, the inferno-component import doesn't work anymore:

Error: Cannot find module 'inferno-component' from '/home/zst/app/'

from inferno.

terinjokes avatar terinjokes commented on May 18, 2024

@cvg1 this was probably just fixed (after 0.5.18, sorry!) in 2856710.

from inferno.

trueadm avatar trueadm commented on May 18, 2024

@cvg1 I applied this fix to master and update the inferno-component NPM module. Should all work fine now.

from inferno.

cvg1 avatar cvg1 commented on May 18, 2024

ok, i've installed inferno-component from npm and all npm imports work ok now.

i've also tried to build modules from master again. relative import of these two works ok:

import Inferno from './static/vendor/inferno/packages/inferno/dist/inferno.min.js';
import InfernoComponent from './static/vendor/inferno/packages/inferno/dist/inferno-component.min.js';

but during import of:

import InfernoDOM from './static/vendor/inferno/packages/inferno/dist/inferno-dom.min.js';

i'll recieve:

Error: Cannot find module 'inferno' from '/home/zst/app/static/vendor/inferno/packages/inferno/dist'

from inferno.

trueadm avatar trueadm commented on May 18, 2024

As a separate node: you can simply require from NPM now as it's up-to-date with the changes that fixed your earlier issues. In terms of loading from static files, I've had countless issues there – I'd advise to use the usual route import Inferno from 'inferno' but selectively choose the Inferno branch in your package.json.

from inferno.

cvg1 avatar cvg1 commented on May 18, 2024

i've tried doing symlinks to the node_modules/ dir instead of relative imports and it was working well.
thank you. closing as this is acceptable workaround.

from inferno.

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.