Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Embroider #137

Open
NullVoxPopuli opened this issue Aug 28, 2021 · 1 comment
Open

Not compatible with Embroider #137

NullVoxPopuli opened this issue Aug 28, 2021 · 1 comment

Comments

@NullVoxPopuli
Copy link

I have a PR testing this here: NullVoxPopuli/website#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.<anonymous> (/✂️/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.<anonymous> (/✂️/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
Copy link

barryofguilder commented Mar 13, 2023

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants