Can't find autoform bootstrap4 theme

Uncaught Error: Cannot find module 'meteor/communitypackages:autoform-booostrap4/static'

Not sure if it is my mistake, but the same project works with autoform-plain

Did you read the autoform instructions? It points to meteor-autoform-themes

Yes, I followed the instructions. I import it like this:

import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.css'            // optional, default theme
import '@fortawesome/fontawesome-free/js/all.js' // optional, is using FA5
import popper from 'popper.js'

global.Popper = popper 

import 'meteor/aldeed:autoform/static'
import { AutoFormThemeBootstrap4 } from 'meteor/communitypackages:autoform-booostrap4/static'

As I said, if I use autoform-plain instead, I can fill the form, and everything works as expected.

Thanks in advance

Ok, there was a typo in the documentation, and I lazily copy&pasted it.

import { AutoFormThemeBootstrap4 } from ‘meteor/communitypackages:autoform-booostrap4/dynamic’

Funny how I read the error for hours without noticing it. Thanks again!

1 Like

Woa the documentation error goes on me. Will update that accordingly.

@davidgasku @jamgold would you mind checking this PR is everything now correct? Are there any other typos in the Bootstrap 4 README?

If you think it looks good please leave a comment on the PR there.