Giter Site home page Giter Site logo

meteor-autoform-themes's People

Contributors

harryadel avatar jankapunkt avatar storytellercz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meteor-autoform-themes's Issues

Cannot Find Module

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

SyntaxError: Unexpected token 'export'

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.

Add Bootstrap 5 theme

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.