meteor-community-packages / meteor-autoform-themes Goto Github PK
View Code? Open in Web Editor NEWOfficially supported themes for aldeed:autoform
License: MIT License
Officially supported themes for aldeed:autoform
License: MIT License
Hello, Thanks for the amazing effort to make this available.
I just updated to autoform 7.0.0, and after following the installation docs I get a blank form, no server errors. Browser console gives me the error:
Uncaught Error: Cannot find module 'meteor/communitypackages:autoform-boostrap4/static'
I am aware of the typo problem, but does seem the case.
Here is my code on app/client/main.js
// communitypackages:autoform-bootstrap4
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 { AutoFormThemeBootstrap4 } from "meteor/communitypackages:autoform-boostrap4/static"; // This is the line that raises the error
AutoFormThemeBootstrap4.load();
AutoForm.setDefaultTemplate("bootstrap4");
If you could help me with any insights, I would be much appreciated.
And just to make sure, this is my packages:
aldeed:[email protected]
aldeed:[email protected]!
aldeed:template-extension
msavin:mongol
momentjs:moment
[email protected]
[email protected]
raix:handlebar-helpers
msavin:jetsetter
alanning:roles
dburles:mongo-collection-instances
dburles:collection-helpers
fortawesome:fontawesome
[email protected]!
communitypackages:autoform-bootstrap4
I'm getting an error when starting an app using 2.0.0-rc.0 of communitypackages:autoform-bootstrap3
running RC2 of Meteor 3.0:
I20240605-16:16:26.282(-5)? error on boot.js packages/communitypackages_autoform-bootstrap3.js:15
I20240605-16:16:26.282(-5)? export const AutoFormThemeBootstrap3 = {}
I20240605-16:16:26.282(-5)? ^^^^^^
I20240605-16:16:26.282(-5)?
I20240605-16:16:26.282(-5)? SyntaxError: Unexpected token 'export'
I20240605-16:16:26.282(-5)? at new Script (node:vm:116:7)
I20240605-16:16:26.282(-5)? at createScript (node:vm:268:10)
I20240605-16:16:26.283(-5)? at Object.runInThisContext (node:vm:316:10)
I20240605-16:16:26.283(-5)? at /tools/static-assets/server/boot.js:414:32
I20240605-16:16:26.283(-5)? at /tools/static-assets/server/boot.js:503:13
I20240605-16:16:26.283(-5)? at AsyncLocalStorage.run (node:async_hooks:346:14)
I20240605-16:16:26.283(-5)? at /tools/static-assets/server/boot.js:502:37
I20240605-16:16:26.283(-5)? at Function.run (/Users/brian/workspaces/perusall/app/.meteor/local/build/programs/server/tools/tool-env/profile.ts:315:14)
I20240605-16:16:26.283(-5)? at startServerProcess (/tools/static-assets/server/boot.js:501:17)
I20240605-16:16:26.283(-5)? at Object.<anonymous> (/tools/static-assets/server/boot.js:508:2)
I20240605-16:16:26.283(-5)? at Object.<anonymous> (/tools/static-assets/server/boot.js:512:4)
I20240605-16:16:26.283(-5)? at Module._compile (node:internal/modules/cjs/loader:1369:14)
I20240605-16:16:26.283(-5)? at Module.Mp._compile (/tools/static-assets/server/runtime.js:78:21)
I20240605-16:16:26.283(-5)? at Object.Module._extensions..js (/tools/static-assets/server/runtime.js:112:21)
I20240605-16:16:26.283(-5)? at Module.load (node:internal/modules/cjs/loader:1206:32)
I20240605-16:16:26.283(-5)? at Module.Mp.load (/tools/static-assets/server/runtime.js:35:31)
I20240605-16:16:26.285(-5)? packages/communitypackages_autoform-bootstrap3.js:15
I20240605-16:16:26.285(-5)? export const AutoFormThemeBootstrap3 = {}
I20240605-16:16:26.285(-5)? ^^^^^^
I20240605-16:16:26.285(-5)?
I20240605-16:16:26.285(-5)? SyntaxError: Unexpected token 'export'
I20240605-16:16:26.285(-5)? at new Script (node:vm:116:7)
I20240605-16:16:26.285(-5)? at createScript (node:vm:268:10)
I20240605-16:16:26.285(-5)? at Object.runInThisContext (node:vm:316:10)
I20240605-16:16:26.285(-5)? at /tools/static-assets/server/boot.js:414:32
I20240605-16:16:26.285(-5)? at /tools/static-assets/server/boot.js:503:13
I20240605-16:16:26.285(-5)? at AsyncLocalStorage.run (node:async_hooks:346:14)
I20240605-16:16:26.285(-5)? at /tools/static-assets/server/boot.js:502:37
I20240605-16:16:26.285(-5)? at Function.run (/Users/brian/workspaces/perusall/app/.meteor/local/build/programs/server/tools/tool-env/profile.ts:315:14)
I20240605-16:16:26.285(-5)? at startServerProcess (/tools/static-assets/server/boot.js:501:17)
I20240605-16:16:26.285(-5)? at Object.<anonymous> (/tools/static-assets/server/boot.js:508:2)
I20240605-16:16:26.285(-5)? at Object.<anonymous> (/tools/static-assets/server/boot.js:512:4)
I20240605-16:16:26.285(-5)? at Module._compile (node:internal/modules/cjs/loader:1369:14)
I20240605-16:16:26.285(-5)? at Module.Mp._compile (/tools/static-assets/server/runtime.js:78:21)
I20240605-16:16:26.286(-5)? at Object.Module._extensions..js (/tools/static-assets/server/runtime.js:112:21)
I20240605-16:16:26.286(-5)? at Module.load (node:internal/modules/cjs/loader:1206:32)
I20240605-16:16:26.286(-5)? at Module.Mp.load (/tools/static-assets/server/runtime.js:35:31)
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.
To reproduce, create a plain Meteor 3.0 RC2 app (meteor create <appname> --release 3.0-rc.2
) and then add communitypackages:autoform-bootstrap3
to the packages
file.
when imported like this:
import { AutoFormThemeBootstrap4 } from 'meteor/communitypackages:autoform-booostrap4/static'
It could be my mistake, but the same line works with autoform-plain
Bootstrap 5 is in beta2 and will soon be in RC stage. There won't be many changes to be expected so we could already start with a theme skeleton. Support from early adopters is highly appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.