Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Failed prop type: Invalid prop value supplied to TextWidget. #1559

Closed
temp3l opened this issue Dec 25, 2019 · 5 comments
Closed

Warning: Failed prop type: Invalid prop value supplied to TextWidget. #1559

temp3l opened this issue Dec 25, 2019 · 5 comments
Labels
bug good first issue material-ui material-ui related theme issue

Comments

@temp3l
Copy link

temp3l commented Dec 25, 2019

reproduce:

  • try a schema without "properties" keyword in the playground
  • and a initial-formData of type object ...

=> make sure the formData is a string to have it fixed

Warning: Failed prop type: Invalid prop `value` supplied to `TextWidget`.
    in TextWidget
    in Unknown (created by StringField)
    in StringField (created by SchemaField)
    in div (created by WrapIfAdditional)
    in WrapIfAdditional (created by DefaultTemplate)
    in DefaultTemplate (created by SchemaField)
@tugglecore
Copy link

tugglecore commented Mar 20, 2020

Hey, I am new to contributing to OSS and I want to be able to solve this issue.

I am having trouble with running this project locally. Here are the steps I have taken thus far:

  1. clone the project.
  2. npm install inside the root directory of the project.
  3. change directory to packages/core and ran npm install and npm start and I received the following output:

`

> @rjsf/core@2.0.0-alpha.2 start C:\Users\tuggle.24\Desktop\Research\floss\react-jsonschema-form\packages\core
> concurrently "npm:build:* -- --watch"

[build:es]
[build:es] > @rjsf/core@2.0.0-alpha.2 build:es C:\Users\tuggle.24\Desktop\Research\floss\react-jsonschema-form\packages\core
[build:es] > cross-env NODE_ENV=production BABEL_ENV=es babel --extensions ".js,.jsx,.ts,.tsx" ./src --out-dir ./dist/es "--watch"
[build:es]
[build:cjs]
[build:cjs] > @rjsf/core@2.0.0-alpha.2 build:cjs C:\Users\tuggle.24\Desktop\Research\floss\react-jsonschema-form\packages\core
[build:cjs] > cross-env NODE_ENV=production BABEL_ENV=cjs babel --extensions ".js,.jsx,.ts,.tsx" ./src --out-dir ./dist/cjs "--watch"
[build:cjs]
[build:cjs] Browserslist: caniuse-lite is outdated. Please run next command `npm update`
[build:es] Browserslist: caniuse-lite is outdated. Please run next command `npm update`
[build:es] Successfully compiled 41 files with Babel.
[build:cjs] Successfully compiled 41 files with Babel.

`

  1. I repeated step 3 for packages/playground and received the following the error:

ERROR in ./src/index.js Module not found: Error: Can't resolve '@rjsf/material-ui' in 'C:\Users\tuggle.24\Desktop\Research\floss\react-jsonschema-form\packages\playground\src' @ ./src/index.js 3:0-54 12:11-19 @ multi ./src/index

What can I do to resolve this issue and began developing locally?
I tried researching the issue on my own by looking at #1642 #1630 #1639.
Also, I am wondering if my issue has any relationship with #1663

@epicfaace
Copy link
Member

@tugglecore you should run the following from the root directory:

lerna bootstrap
npm start

And everything should work.

@epicfaace epicfaace added this to To do in PRs May 23, 2020
@stanlemon
Copy link
Contributor

@temp3l So is the schema you're trying something like this?

{
  "type": "string"
}

@stanlemon stanlemon added the material-ui material-ui related theme issue label Jun 15, 2020
@priyang12
Copy link

hi can i work on this issue if no one is working on this

@heath-freenome
Copy link
Member

I believe this is working in the 5.x release just fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue material-ui material-ui related theme issue
Projects
None yet
Development

No branches or pull requests

6 participants