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.

3.0: moogBundle is not a valid top level property

See original GitHub issue

To Reproduce

Step by step instructions to reproduce the behavior:

  1. Add moogBundle property to any A3 module
  2. Look at the CLI output (app crashed) with message something along the lines moogBundle is not a valid top level property

Expected behavior

Accept moogBundle property as a valid one

Describe the bug

moogBundle is required for bundled modules (such as Apostrophe Blog). There is a trace in https://github.com/apostrophecms/apostrophe/blob/3.0.0-alpha.3/index.js#L184 of the functionality and indeed mogBundle is required to be a top level property, but it seems the module validator is not accepting this prop.

Details

Version of Node.js: any

Server Operating System: any

Apostrophe CMS version 3.0.0-alpha.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
boutellcommented, Jan 18, 2021

Miro, would you mind submitting a PR that adds this change and also renames the key to just bundle? Thanks!

On Mon, Jan 18, 2021 at 2:00 AM Miro Yovchev notifications@github.com wrote:

Found it. For those interested in ‘monkey-patching’ (just override in your node modules, on every node_modules update) this while waiting for the next alpha/beta:

  1. open moog.js https://github.com/apostrophecms/apostrophe/blob/3.0.0-alpha.3/lib/moog.js#L137 inside your node_modules/apostrophe folder
  2. add ‘moogBundle’ to the validKeys` array

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/apostrophecms/apostrophe/issues/2686#issuecomment-762030255, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAH27I3YEKCPMFJBVGLIBLS2PMA3ANCNFSM4WDXOEOA .

THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER APOSTROPHECMS | apostrophecms.com | he/him/his

0reactions
myovchevcommented, Jan 18, 2021

Found it. For those interested in ‘monkey-patching’ (just override in your node modules, on every node_modules update) this while waiting for the next alpha/beta:

  1. open moog.js inside your node_modules/apostrophe folder
  2. add 'moogBundle' to the validKeys` array
Read more comments on GitHub >

github_iconTop Results From Across the Web

Module configuration options - Apostrophe 3 Documentation
If added on the top level of the page object, these properties will not be editable through the user interface. Properties other than ......
Read more >
apostrophe/CHANGELOG.md at main · apostrophecms ...
If you saw the error RangeError: Invalid value: Not in inclusive range 0..145: -1 you can now fix that by upgrading with npm...
Read more >
Invalid top-level property "app01". Valid top-level sections ...
I tried to change the version number in the docker-compose file to 3.3 but that also did not work. my docker-compose file looks...
Read more >
apostrophe-headless
There are no other projects in the npm registry using ... See the results property for an array of products included in the...
Read more >
Invalid top-level property "app". : r/docker
Invalid top -level property "app". Valid top-level sections for this Compose file are: version, services, networks, volumes, secrets, ...
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