question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot Import Form Components

See original GitHub issue

Code:

import React from 'react';
import {Heading, Columns, Field} from 'react-bulma-components';

export default class CreateAccount extends React.Component {
  render() {
    return (
    <Columns>
      <Columns.Column className='has-text-centered'>
        <Heading>
          Create an Account
        </Heading>
        <Field></Field>
      </Columns.Column>
      <Columns.Column className="is-hidden-mobile has-text-centered">
        Right Stuff
      </Columns.Column>
    </Columns>);
  }
}

Error: screen shot 2018-06-21 at 2 42 56 pm

Version: 1.4.6

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
coudscommented, Jun 22, 2018

Hi @bramski.

The Field Component its not on the root of export, all the Form components are inside the Form Namespace, can you change the code to look like this?

import React from 'react';
import {Heading, Columns, Form} from 'react-bulma-components';

export default class CreateAccount extends React.Component {
  render() {
    return (
    <Columns>
      <Columns.Column className='has-text-centered'>
        <Heading>
          Create an Account
        </Heading>
        <Form.Field></Form.Field>
      </Columns.Column>
      <Columns.Column className="is-hidden-mobile has-text-centered">
        Right Stuff
      </Columns.Column>
    </Columns>);
  }
}

Let me know if it works,

Thanks

0reactions
coudscommented, Jun 23, 2018

Closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot import components from react-bootstrap - Stack Overflow
In this case: import {Button} from 'react-bootstrap/Button' would mean that file has explicitly named one of their exports Button . But that's ...
Read more >
Import database objects into the current Access database
Learn how to import objects from one Access database into the current ... You can't import forms, reports, macros, and modules into an...
Read more >
Import problems with forms - Anvil Q&A
What I'm trying to do: I am trying to import the 'parent' form of this component, so that I can call functions in...
Read more >
Forms - React-Bootstrap
The <FormControl> component renders a form control with Bootstrap styling. ... import Button from 'react-bootstrap/Button'; ... Can't check this. import ...
Read more >
The form component is in an invalid state and cannot be loaded.
On the existing forms we are not able to load the components(form ... then creating your forms with the same field names, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found