GithubHelp home page GithubHelp logo

jhsware / inferno-bootstrap Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 0.0 1.82 MB

Bootstrap 4 as Inferno.js components, no need for jQuery

Home Page: https://jhsware.github.io/inferno-bootstrap-docs

JavaScript 98.92% CSS 0.64% HTML 0.28% Shell 0.15%

inferno-bootstrap's People

Contributors

jhsware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

inferno-bootstrap's Issues

Importing using /lib or cherry picking

Thanks for creating this library I was about to give up on inferno as I didn't want to go back to v3 bootstrap.

For me the main thing is modal support using your docs I got that working with the following import:

import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'inferno-bootstrap';

However I would like to improve that and use either /lib or the /dist/Modal/Modal' approaches. I'm getting the following errors when I do that.

With:

import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'inferno-bootstrap/lib';

I'm getting:

./node_modules/inferno-bootstrap/lib/Popover.js
Module parse failed: Unexpected token (141:6)
You may need an appropriate loader to handle this file type.
|
|     return (
|       <PopperContent
|         className={popperClasses}
|         target={this.props.target}

and with:

import { Button } from 'inferno-bootstrap/dist/Button';
import { Modal } from 'inferno-bootstrap/dist/Modal/Modal';
import { ModalHeader } from 'inferno-bootstrap/dist/Modal/ModalHeader';
import { ModalBody } from 'inferno-bootstrap/dist/Modal/ModalBody';
import { ModalFooter } from 'inferno-bootstrap/dist/Modal/ModalFooter';

I'm getting run time errors:

TypeError: Cannot read property 'prototype' of undefined
createComponentVNode
node_modules/inferno/dist/index.dev.esm.js:248
  245 |     }
  246 | }
  247 | if ((flags & 2 /* ComponentUnknown */) > 0) {
> 248 |     flags = isDefined(type.prototype) && isFunction(type.prototype.render) ? 4 /* ComponentClass */ : 8 /* ComponentFunction */;
  249 | }
  250 | // set default props
  251 | var defaultProps = type.defaultProps;

I'm new to inferno so I hope I'm not wasting your time but any help would be appreciated.

spread operator error

$ npm start

[email protected] start C:\dev\projects\scrap\inferno-seed
inferno-scripts start

The setup option is deprecated and will be removed in v3. Please update your config to use before
Starting the development server...

Failed to compile.

./node_modules/inferno-bootstrap/lib/Button.js
Module parse failed: C:\dev\projects\inferno-seed\node_modules\inferno-bootstrap\lib\Button.js Unexpected token (40:6)
You may need an appropriate loader to handle this file type.
| tag: Tag,
| innerRef,
| ...attributes
| } = this.props;
|

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.