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.

[BUG] FormBuilder error: Uncaught (in promise) Missing projectId

See original GitHub issue

Environment

Please provide as many details as you can:

  • Hosting type
    • [] Form.io
    • [x ] Local deployment
      • Version: N/A, custom backend
  • Formio.js version: 4.13
  • Frontend framework: React or vanilla JavaScript
  • Browser: Google Chrome
  • Browser version: Version 90.0.4430.93 (Official Build) (64-bit)

Steps to Reproduce

  1. Go to https://formio.github.io/formio.js/app/builder
  2. Open Google Chrome console

Expected behavior

No error in the console

Observed behavior

Error in the console:

builder:1 Uncaught (in promise) Missing projectId
Promise.then (async)
WebformBuilder @ WebformBuilder.js:382
create @ FormBuilder.js:82
setForm @ Form.js:253
Form @ Form.js:122
_createSuperInternal @ FormBuilder.js:50
FormBuilder @ FormBuilder.js:72
(anonymous) @ builder:137

We are getting the same error when rendering FormBuilder from FormIO 4.13 in our app. Before 4.13 version it was ok.

Example

Example is already present in the official FormBuilder demo page: https://formio.github.io/formio.js/app/builder

Is there any workaround for this error to not appear? Maybe some option to set, so the projectId is not missing anymore?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
jbarruscommented, Jul 20, 2021

Functionality is fine, but the error logging is annoying, particularly if you have browser logs getting shipped to a logging service.

2reactions
wag110894commented, May 9, 2022

@simonv3, let us know if you see the issue moving forward. Glad to hear that it is no longer occurring.

Read more comments on GitHub >

github_iconTop Results From Across the Web

formio/formio - Gitter
I have created a form from “form.io” where a field (Client, for example) is mandatory.I am not able to translate the error message...
Read more >
formiojs | Yarn - Package Manager
FIO-3344: Add margin bottom to all components in builder mode; Fixed builder missing projectId promise rejection; Fixed tooltip not escaping double quotes ...
Read more >
typeerror: cannot set properties of undefined (setting 'formgroup')
This error happened because your form values not valid. You are not maintaining proper formik state. I just tried this and checked, form...
Read more >
sanity/client - npm.io
Works in node.js and modern browsers (older browsers need a Promise polyfill). ... client = sanityClient({ projectId: 'your-project-id', dataset: 'bikeshop' ...
Read more >
Regression Bug - Release Notes - Liferay Issues
[AUI-1612] - Form builder textfield and textarea need width validators ... [AUI-1669] - Image Viewer Base throws error when no images or sources...
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