meteor-autoform
meteor-autoform copied to clipboard
Warning "AutoForm: no theme found, please consult the README." triggered by added inputTypes
Describe the bug
With AutoForm 8.0.0-rc.4, meteor 3.0.2 For each field representing an added inputType, a warning is appearing in the console AutoForm: no theme found, please consult the README.
A theme is installed (bootstrap 4) and is functional. The warning reflects probably that no default template is being found. This worked fine with @7.0.0.
To Reproduce
Add an inputType
Expected behavior
no warning should appear
Screenshots
If applicable, add screenshots to help explain your problem. Please avoid screenshots of code or error outputs and use formatted code via markdown instead.
Versions (please complete the following information):
- Meteor version: 3.0.2
- Browser: chrome
- Package version: 8.0.0-rc.4
Additional context
detailed console log of a warning message
autoform-api.js:315 AutoForm: no theme found, please consult the README.
autoFormGetTemplateName @ autoform-api.js:315
getTemplateName @ afFieldInput.js:90
(anonymous) @ lookup.js:61
(anonymous) @ exceptions.js:58
(anonymous) @ lookup.js:112
Template._withTemplateInstanceFunc @ template.js:492
(anonymous) @ lookup.js:111
Spacebars.call @ spacebars.js?hash=986169e53e97e70e23543cafe4e00fa0762d2ef4:204
(anonymous) @ aldeed_autoform.js?hash=7bce86a9c73586b10b092011d325b9c75e5ce53d:4260
wrappedArgFunc @ builtins.js:396
(anonymous) @ builtins.js:25
(anonymous) @ view.js:206
Template._withTemplateInstanceFunc @ template.js:492
(anonymous) @ view.js:204
Blaze._withCurrentView @ view.js:555
viewAutorun @ view.js:203
(anonymous) @ tracker.js:331
Tracker.withComputation @ tracker.js:640
_compute @ tracker.js:330
Computation @ tracker.js:211
Tracker.autorun @ tracker.js:602
Blaze.View.autorun @ view.js:216
(anonymous) @ builtins.js:24
fireCallbacks @ view.js:286
Tracker.withComputation @ tracker.js:640
Tracker.nonreactive @ tracker.js:625
(anonymous) @ view.js:283
Blaze._withCurrentView @ view.js:555
Blaze._fireCallbacks @ view.js:282
Blaze._createView @ view.js:300
Blaze._materializeView @ view.js:345
materializeDOMInner @ materializer.js:87
Blaze._materializeDOM @ materializer.js:25
Blaze._materializeDOM @ materializer.js:34
doMaterialize @ view.js:364
Tracker.withComputation @ tracker.js:640
Tracker.nonreactive @ tracker.js:625
doRender @ view.js:362
(anonymous) @ view.js:206
Template._withTemplateInstanceFunc @ template.js:492
(anonymous) @ view.js:204
Blaze._withCurrentView @ view.js:555
viewAutorun @ view.js:203
(anonymous) @ tracker.js:331
Tracker.withComputation @ tracker.js:640
_compute @ tracker.js:330
_recompute @ tracker.js:352
Tracker._runFlush @ tracker.js:523
onGlobalMessage @ meteor.js?hash=361c5902aa33f683ca157ee7f6436991a096184f:469
postMessage
setImmediate @ meteor.js?hash=361c5902aa33f683ca157ee7f6436991a096184f:489
requireFlush @ tracker.js:124
invalidate @ tracker.js:285
changed @ tracker.js:450
(anonymous) @ livedata_connection.js:1626
(anonymous) @ livedata_connection.js:1473
_runAfterUpdateCallbacks @ livedata_connection.js:1472
_performWritesClient @ livedata_connection.js:1462
_flushBufferedWritesClient @ livedata_connection.js:1364
_flushBufferedWrites @ livedata_connection.js:1369
_livedata_data @ livedata_connection.js:1312
await in _livedata_data
onMessage @ livedata_connection.js:1912
(anonymous) @ browser.js:185
forEachCallback @ common.js:30
socket.onmessage @ browser.js:184
r.dispatchEvent @ sockjs-1.6.1-min-.js:2
(anonymous) @ sockjs-1.6.1-min-.js:2
y._transportMessage @ sockjs-1.6.1-min-.js:2
i.emit @ sockjs-1.6.1-min-.js:2
ws.onmessage @ sockjs-1.6.1-min-.js:2
AutoForm initialization section
import 'meteor/aldeed:autoform/static'
import { AutoFormThemeBootstrap4 } from 'meteor/communitypackages:autoform-bootstrap4/static'
AutoFormThemeBootstrap4.load();
AutoForm.setDefaultTemplate('bootstrap4');