Comments (9)
@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.
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.
This should be all fixed in the latest master/release.
from inferno.
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.
@cvg1 this was probably just fixed (after 0.5.18, sorry!) in 2856710.
from inferno.
@cvg1 I applied this fix to master and update the inferno-component
NPM module. Should all work fine now.
from inferno.
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.
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.
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)
- inferno-compat missing support for createRoot HOT 1
- [Question] Inferno renders a component incorrectly HOT 7
- [Question] How to force re-render a Component? HOT 12
- Suggestion: Set up Github discussions HOT 4
- Add FF48 and FF84 to the browser support list HOT 9
- Optimization for class components with exactly one state HOT 4
- How to define Component shape using typescript? HOT 6
- What does findDOMNode return? HOT 2
- Convert all inferno tests from JSX to TSX
- Inferno repository should run all tests using ts-plugin-inferno
- Add support for math formula elements HOT 1
- Inferno should support typing component children to specific type
- useComposedPath for event propagation
- re-design lifecycle parameter HOT 1
- <input onClick="string()"/> throws TypeError HOT 6
- improve form event
- Duplicated isValidElement from inferno-compat in inferno-router/src/utils.ts
- Make Inferno v9 modules compatible with NodeJs ESM
- Something is wrong with setState HOT 2
- Implement a Vite plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inferno.