empress / empress-blog

Fully-functional, SEO friendly static site implementation of a blog system built on Ember
https://empress-blog.netlify.app/
MIT License
180 stars 30 forks source link

Not compatible with Embroider #137

Open NullVoxPopuli opened 3 years ago

NullVoxPopuli commented 3 years ago

I have a PR testing this here: https://github.com/NullVoxPopuli/website/pull/61 this is using the base embroider config with maximum compatibility:

  const { Webpack } = require('@embroider/webpack');

  return require('@embroider/compat').compatBuild(app, Webpack, {
  });

I get the error:

Build Error (WaitForTrees)

unknown object passed to sourceOfConfig(). You can only pass back the configs you were given.
here is the full log ``` ================================================================================= ENV Summary: TIME: Sat Aug 28 2021 14:23:32 GMT-0400 (Eastern Daylight Time) TITLE: ember ARGV: - 🏠/.volta/tools/image/node/14.17.5/bin/node - /βœ‚οΈ/nullvoxpopuli.com/node_modules/.bin/ember - serve EXEC_PATH: 🏠/.volta/tools/image/node/14.17.5/bin/node TMPDIR: /tmp SHELL: /bin/bash PATH: - /tmp/yarn--1630174997700-0.6973971208067318 - /βœ‚οΈ/nullvoxpopuli.com/node_modules/.bin - 🏠/.config/yarn/link/node_modules/.bin - 🏠/.yarn/bin - 🏠/.volta/tools/image/node/14.17.5/libexec/lib/node_modules/npm/bin/node-gyp-bin - 🏠/.volta/tools/image/node/14.17.5/lib/node_modules/npm/bin/node-gyp-bin - 🏠/.volta/tools/image/node/14.17.5/bin/node_modules/npm/bin/node-gyp-bin - 🏠/.volta/tools/image/npm/7.7.5/bin - 🏠/.volta/tools/image/yarn/1.22.11/bin - 🏠/.volta/tools/image/node/14.17.5/bin - 🏠/.volta/bin - 🏠/.pythons/Python-3.6.3/bin - 🏠/.cargo/bin - 🏠/Applications - 🏠/apps/phantomjs/bin - 🏠/scripts/system-utils - 🏠/scripts/git - 🏠/scripts/rails - 🏠/scripts - 🏠/.volta/bin - /usr/local/sbin - /usr/local/bin - /usr/sbin - /usr/bin - /sbin - /bin - /usr/games - /usr/local/games - /snap/bin - 🏠/.dotnet/tools - 🏠/.dotnet/tools - 🏠/.fzf/bin PLATFORM: linux x64 FREEMEM: 558575616 TOTALMEM: 17388204032 UPTIME: 2293296.63 LOADAVG: 1.72,1.16,0.8 CPUS: - Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz - 3192 - Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz - 3192 - Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz - 3192 - Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz - 3192 - Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz - 3192 - Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz - 3192 ENDIANNESS: LE VERSIONS: - ares: 1.17.2 - brotli: 1.0.9 - cldr: 39.0 - icu: 69.1 - llhttp: 2.1.3 - modules: 83 - napi: 8 - nghttp2: 1.42.0 - node: 14.17.5 - openssl: 1.1.1k - tz: 2021a - unicode: 13.0 - uv: 1.41.0 - v8: 8.4.371.23-node.76 - zlib: 1.2.11 ERROR Summary: - broccoliBuilderErrorStack: Error: unknown object passed to sourceOfConfig(). You can only pass back the configs you were given. at /βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/macros-config.js:323:19 at /βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/macros-config.js:315:76 at arrayAggregator (/βœ‚οΈ/nullvoxpopuli.com/node_modules/lodash/_arrayAggregator.js:17:32) at Object.default (/βœ‚οΈ/nullvoxpopuli.com/node_modules/lodash/_createAggregator.js:19:12) at defaultMerger (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/macros-config.js:315:61) at MacrosConfig.get userConfigs [as userConfigs] (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/macros-config.js:182:55) at Object.get userConfigs [as userConfigs] (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/macros-config.js:258:36) at Object.get params [as params] (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/glimmer/ast-transform.js:90:35) at maybeHTMLBars (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/src/portable.js:204:42) at Portable.dehydrate (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/src/portable.js:48:24) - code: [undefined] - codeFrame: unknown object passed to sourceOfConfig(). You can only pass back the configs you were given. - errorMessage: unknown object passed to sourceOfConfig(). You can only pass back the configs you were given. at WaitForTrees (@embroider/compat/app) -~- created here: -~- at new Plugin (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/node_modules/broccoli-plugin/dist/index.js:47:36) at new WaitForTrees (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/src/wait-for-trees.js:30:9) at CompatApp.get tree (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/src/build-stage.js:26:16) at CompatApp. (/βœ‚οΈ/nullvoxpopuli.com/node_modules/typescript-memoize/dist/memoize-decorator.js:100:52) at new PackagerRunner (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/src/to-broccoli-plugin.js:11:26) at Object.defaultPipeline (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/compat/src/default-pipeline.js:43:12) at module.exports (/βœ‚οΈ/nullvoxpopuli.com/ember-cli-build.js:61:39) at Builder.readBuildFile (/βœ‚οΈ/nullvoxpopuli.com/node_modules/ember-cli/lib/models/builder.js:49:14) at Builder.setupBroccoliBuilder (/βœ‚οΈ/nullvoxpopuli.com/node_modules/ember-cli/lib/models/builder.js:63:22) at new Builder (/βœ‚οΈ/nullvoxpopuli.com/node_modules/ember-cli/lib/models/builder.js:29:10) -~- (end) -~- - errorType: Build Error - location: - column: [undefined] - file: [undefined] - line: [undefined] - treeDir: [undefined] - message: unknown object passed to sourceOfConfig(). You can only pass back the configs you were given. at WaitForTrees (@embroider/compat/app) -~- created here: -~- at new Plugin (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/node_modules/broccoli-plugin/dist/index.js:47:36) at new WaitForTrees (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/src/wait-for-trees.js:30:9) at CompatApp.get tree (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/src/build-stage.js:26:16) at CompatApp. (/βœ‚οΈ/nullvoxpopuli.com/node_modules/typescript-memoize/dist/memoize-decorator.js:100:52) at new PackagerRunner (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/src/to-broccoli-plugin.js:11:26) at Object.defaultPipeline (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/compat/src/default-pipeline.js:43:12) at module.exports (/βœ‚οΈ/nullvoxpopuli.com/ember-cli-build.js:61:39) at Builder.readBuildFile (/βœ‚οΈ/nullvoxpopuli.com/node_modules/ember-cli/lib/models/builder.js:49:14) at Builder.setupBroccoliBuilder (/βœ‚οΈ/nullvoxpopuli.com/node_modules/ember-cli/lib/models/builder.js:63:22) at new Builder (/βœ‚οΈ/nullvoxpopuli.com/node_modules/ember-cli/lib/models/builder.js:29:10) -~- (end) -~- - name: Error - nodeAnnotation: @embroider/compat/app - nodeName: WaitForTrees - originalErrorMessage: unknown object passed to sourceOfConfig(). You can only pass back the configs you were given. - stack: Error: unknown object passed to sourceOfConfig(). You can only pass back the configs you were given. at /βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/macros-config.js:323:19 at /βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/macros-config.js:315:76 at arrayAggregator (/βœ‚οΈ/nullvoxpopuli.com/node_modules/lodash/_arrayAggregator.js:17:32) at Object.default (/βœ‚οΈ/nullvoxpopuli.com/node_modules/lodash/_createAggregator.js:19:12) at defaultMerger (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/macros-config.js:315:61) at MacrosConfig.get userConfigs [as userConfigs] (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/macros-config.js:182:55) at Object.get userConfigs [as userConfigs] (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/macros-config.js:258:36) at Object.get params [as params] (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/macros/src/glimmer/ast-transform.js:90:35) at maybeHTMLBars (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/src/portable.js:204:42) at Portable.dehydrate (/βœ‚οΈ/nullvoxpopuli.com/node_modules/@embroider/core/src/portable.js:48:24) ================================================================================= ```

So, I'm not sure where the issue is, because the entire stack seems to come from embroider/typescript-memoize? idk

barryofguilder commented 1 year ago

I started setting up a new blog and it seems that it works with basic Emroider now. I was also able to turn on the following Embroider options:

staticAddonTestSupportTrees: true,
staticAddonTrees: true,
staticModifiers: true,

However, if either of the following options were on, it didn't work with Embroider and it seemed to just sit there forever churning:

staticHelpers: true,
staticComponents: true,