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

"Uncaught Error: Could not find module `@ember/component`" when upgrading from 0.11.4 to 0.13.1 #112

Closed
enkol opened this issue Feb 14, 2018 · 8 comments

Comments

@enkol
Copy link
Contributor

@enkol enkol commented Feb 14, 2018

After upgrading from 0.11.4 to any higher version (including 0.13.1), if get the following error:

Uncaught Error: Could not find module `@ember/component` imported from `@ember-decorators/argument/-debug/validated-component`
at missingModule (loader.js:247)
at findModule (loader.js:258)
at Module.findDeps (loader.js:168)
at findModule (loader.js:262)
at Module.findDeps (loader.js:168)
at findModule (loader.js:262)
at Module.findDeps (loader.js:168)
at findModule (loader.js:262)
at Module.findDeps (loader.js:168)
at findModule (loader.js:262)

There are no other problems/execptions besides the module error (only some caught ones from babel-polyfill).

Deleting node_modules for a fresh dependencies installation didn't changed anything. It also happens in both, production and delevopment build.

I wasn't yet able to reproduce the problem in a fresh ember-cli project.

Any ideas how to get more information what is going wrong here?

I've already asked this at stackoverflow, but didn't got help yet. So i decided to try to ask here on the project directly, as i can't tag the question on stackoverflow with ember-attacher or ember-popper.

Feel free to delete this issue, if it's inappropriate here.

My projects dependencies:

Click to expand

"devDependencies": {
    "broccoli-asset-rev": "^2.6.0",
    "ember-ajax": "^3.0.0",
    "ember-attacher": "^0.11.4",
    "ember-chrome-devtools": "^0.2.0",
    "ember-cli": "~2.18.2",
    "ember-cli-app-version": "^3.1.3",
    "ember-cli-autoprefixer": "^0.8.1",
    "ember-cli-babel": "^6.11.0",
    "ember-cli-dependency-checker": "^2.1.0",
    "ember-cli-eslint": "^4.2.3",
    "ember-cli-htmlbars": "^2.0.3",
    "ember-cli-htmlbars-inline-precompile": "^1.0.2",
    "ember-cli-inject-live-reload": "^1.7.0",
    "ember-cli-moment-shim": "^3.5.0",
    "ember-cli-qunit": "^4.3.1",
    "ember-cli-sass": "^7.1.4",
    "ember-cli-shims": "^1.2.0",
    "ember-cli-sri": "^2.1.1",
    "ember-cli-string-helpers": "1.7.0",
    "ember-cli-uglify": "^2.0.0",
    "ember-cli-windows-addon": "^1.3.1",
    "ember-cli-yuidoc": "^0.8.8",
    "ember-collection": "^1.0.0-alpha.7",
    "ember-composable-helpers": "^2.1.0",
    "ember-cp-validations": "^3.5.1",
    "ember-crumbly": "^2.0.0-alpha.1",
    "ember-data": "~2.18.1",
    "ember-debounced-properties": "0.0.5",
    "ember-drag-drop": "^0.4.7",
    "ember-export-application-global": "^2.0.0",
    "ember-intl": "^2.32.1",
    "ember-intl-cp-validations": "^3.0.1",
    "ember-load": "^0.0.12",
    "ember-load-initializers": "^1.0.0",
    "ember-math-helpers": "^2.4.0",
    "ember-md5": "^1.1.0",
    "ember-moment": "^7.6.0",
    "ember-paper": "~1.0.0-beta.4",
    "ember-pikaday": "^2.2.4",
    "ember-pouch": "^5.0.0",
    "ember-promise-helpers": "^1.0.3",
    "ember-radio-button": "^1.2.2",
    "ember-resolver": "^4.0.0",
    "ember-responsive": "^2.0.5",
    "ember-route-action-helper": "^2.0.6",
    "ember-shepherd": "^3.1.0",
    "ember-simple-auth": "^1.5.0",
    "ember-source": "~2.18.0",
    "ember-tether": "^1.0.0-beta.1",
    "ember-timepicker": "^0.2.0",
    "ember-transition-helper": "^0.0.6",
    "ember-truth-helpers": "^2.0.0",
    "ember-user-activity": "^0.10.0",
    "ember-uuid": "^1.0.0",
    "eslint": "^4.17.0",
    "eslint-plugin-ember": "^5.0.3",
    "loader.js": "^4.2.3",
    "paper-time-picker": "^0.1.15",
    "string_score": "^0.1.22",
    "yuidoc-ember-theme": "^1.4.0"
  }

@kybishop

This comment has been minimized.

Copy link
Owner

@kybishop kybishop commented Feb 14, 2018

Hmm. Have you tried deleting tmp/ and dist/ as well? Interesting that it isn't happening in a fresh install.

Happy to debug this with you.

@enkol

This comment has been minimized.

Copy link
Contributor Author

@enkol enkol commented Feb 15, 2018

Thanks for trying to help me out on this!

I've deleted as much as possible (tmp, dist, node_modules) and also tried yarn cache clean and npm cache clean.

I tried to reproduce the problem with a new ember-cli project with all of my main projects dependencies. I think it not happening there has to do with not importing the one thing out of the other dependencies which causes the issue. I only have one test page with some tooltips and a popover in this new app, so i don't really use all the dependencies there.
I assume babel strips out things not used from dependencies. Or there is some change in order or something.

The error occurs, when ember tries to resolve the ember-popper component. What confuses me, is that it searches for a module @ember/component, but there is no module with name @ember/component.
I've not deep enough knowledge of how ember-cli/babel works, as in every component one imports from @ember/component and it works; But in the browser, when looking into require.entries, there never is any module named @ember/component (even in a non errornous app). So there must be some transformation happening, to resolve the import. But then, why isn't this transformation happening in the case of the issue.

When i build and run my project with environment=production , the error changes to:

Could not find module `@ember/object` imported from `@ember-decorators/argument/index`

Here's a diff between dependencies of my project with ember-attacher 0.11.4 and 0.13.1.

Click to expand

38a39,90
> ├─ @ember-decorators/argument@0.8.11
> │  ├─ amd-name-resolver@0.0.6
> │  │  └─ ensure-posix-path@^1.0.1
> │  ├─ babel-plugin-debug-macros@0.1.10
> │  │  └─ semver@^5.3.0
> │  ├─ babel-plugin-filter-imports@^1.1.1
> │  ├─ broccoli-funnel@^2.0.1
> │  ├─ broccoli-funnel@2.0.1
> │  │  ├─ array-equal@^1.0.0
> │  │  ├─ blank-object@^1.0.1
> │  │  ├─ broccoli-plugin@^1.3.0
> │  │  ├─ debug@^2.2.0
> │  │  ├─ fast-ordered-set@^1.0.0
> │  │  ├─ fs-tree-diff@^0.5.3
> │  │  ├─ heimdalljs@^0.2.0
> │  │  ├─ minimatch@^3.0.0
> │  │  ├─ mkdirp@^0.5.0
> │  │  ├─ path-posix@^1.0.0
> │  │  ├─ rimraf@^2.4.3
> │  │  ├─ symlink-or-copy@^1.0.0
> │  │  └─ walk-sync@^0.3.1
> │  ├─ ember-cli-babel@^6.3.0
> │  ├─ ember-cli-babel@6.5.1
> │  │  ├─ amd-name-resolver@0.0.6
> │  │  ├─ babel-plugin-debug-macros@^0.1.10
> │  │  ├─ babel-plugin-transform-es2015-modules-amd@^6.24.0
> │  │  ├─ babel-polyfill@^6.16.0
> │  │  ├─ babel-preset-env@^1.5.1
> │  │  ├─ broccoli-babel-transpiler@^6.0.0
> │  │  ├─ broccoli-debug@^0.6.2
> │  │  ├─ broccoli-funnel@^1.0.0
> │  │  ├─ broccoli-funnel@1.2.0
> │  │  │  ├─ array-equal@^1.0.0
> │  │  │  ├─ blank-object@^1.0.1
> │  │  │  ├─ broccoli-plugin@^1.3.0
> │  │  │  ├─ debug@^2.2.0
> │  │  │  ├─ exists-sync@0.0.4
> │  │  │  ├─ fast-ordered-set@^1.0.0
> │  │  │  ├─ fs-tree-diff@^0.5.3
> │  │  │  ├─ heimdalljs@^0.2.0
> │  │  │  ├─ minimatch@^3.0.0
> │  │  │  ├─ mkdirp@^0.5.0
> │  │  │  ├─ path-posix@^1.0.0
> │  │  │  ├─ rimraf@^2.4.3
> │  │  │  ├─ symlink-or-copy@^1.0.0
> │  │  │  └─ walk-sync@^0.3.1
> │  │  ├─ broccoli-source@^1.1.0
> │  │  ├─ clone@^2.0.0
> │  │  └─ ember-cli-version-checker@^2.0.0
> │  ├─ ember-cli-version-checker@^2.0.0
> │  ├─ ember-compatibility-helpers@^0.1.1
> │  └─ ember-get-config@^0.2.3
46,51c98
< │  ├─ ember-compatibility-helpers@^0.1.2
< │  ├─ ember-compatibility-helpers@0.1.3
< │  │  ├─ babel-plugin-debug-macros@^0.1.11
< │  │  ├─ ember-cli-version-checker@^2.0.0
< │  │  └─ semver@^5.4.1
< │  └─ semver@5.4.1
---
> │  └─ ember-compatibility-helpers@^0.1.2
321c368,370
< ├─ babel-plugin-filter-imports@0.3.1
---
> ├─ babel-plugin-filter-imports@1.1.1
> │  ├─ babel-types@^6.26.0
> │  └─ lodash@^4.17.4
1654,1707c1703,1705
< ├─ ember-attacher@0.11.4
< │  ├─ babel-core@5.8.38
< │  │  ├─ babel-plugin-constant-folding@^1.0.1
< │  │  ├─ babel-plugin-dead-code-elimination@^1.0.2
< │  │  ├─ babel-plugin-eval@^1.0.1
< │  │  ├─ babel-plugin-inline-environment-variables@^1.0.1
< │  │  ├─ babel-plugin-jscript@^1.0.4
< │  │  ├─ babel-plugin-member-expression-literals@^1.0.1
< │  │  ├─ babel-plugin-property-literals@^1.0.1
< │  │  ├─ babel-plugin-proto-to-assign@^1.0.3
< │  │  ├─ babel-plugin-react-constant-elements@^1.0.3
< │  │  ├─ babel-plugin-react-display-name@^1.0.3
< │  │  ├─ babel-plugin-remove-console@^1.0.1
< │  │  ├─ babel-plugin-remove-debugger@^1.0.1
< │  │  ├─ babel-plugin-runtime@^1.0.7
< │  │  ├─ babel-plugin-undeclared-variables-check@^1.0.2
< │  │  ├─ babel-plugin-undefined-to-void@^1.1.6
< │  │  ├─ babylon@^5.8.38
< │  │  ├─ bluebird@^2.9.33
< │  │  ├─ chalk@^1.0.0
< │  │  ├─ convert-source-map@^1.1.0
< │  │  ├─ core-js@^1.0.0
< │  │  ├─ debug@^2.1.1
< │  │  ├─ detect-indent@^3.0.0
< │  │  ├─ esutils@^2.0.0
< │  │  ├─ fs-readdir-recursive@^0.1.0
< │  │  ├─ globals@^6.4.0
< │  │  ├─ home-or-tmp@^1.0.0
< │  │  ├─ is-integer@^1.0.4
< │  │  ├─ js-tokens@1.0.1
< │  │  ├─ json5@^0.4.0
< │  │  ├─ lodash@^3.10.0
< │  │  ├─ minimatch@^2.0.3
< │  │  ├─ minimatch@2.0.10
< │  │  │  └─ brace-expansion@^1.0.0
< │  │  ├─ output-file-sync@^1.1.0
< │  │  ├─ path-exists@^1.0.0
< │  │  ├─ path-is-absolute@^1.0.0
< │  │  ├─ private@^0.1.6
< │  │  ├─ regenerator@0.8.40
< │  │  ├─ regexpu@^1.3.0
< │  │  ├─ repeating@^1.1.2
< │  │  ├─ resolve@^1.1.6
< │  │  ├─ shebang-regex@^1.0.0
< │  │  ├─ slash@^1.0.0
< │  │  ├─ source-map-support@^0.2.10
< │  │  ├─ source-map@^0.5.0
< │  │  ├─ to-fast-properties@^1.0.0
< │  │  ├─ trim-right@^1.0.0
< │  │  └─ try-resolve@^1.0.0
< │  ├─ babel-eslint@^8.0.0
< │  ├─ babel-plugin-ember-modules-api-polyfill@2.0.1
< │  │  └─ ember-rfc176-data@^0.2.7
< │  ├─ babel-plugin-filter-imports@^0.3.1
---
> ├─ ember-attacher@0.13.1
> │  ├─ babel-eslint@^8.2.1
> │  ├─ babel-plugin-filter-imports@^1.1.1
1709,1710d1706
< │  ├─ babylon@5.8.38
< │  ├─ bluebird@2.11.0
1726,1774c1722
< │  ├─ broccoli-persistent-filter@1.4.3
< │  │  ├─ async-disk-cache@^1.2.1
< │  │  ├─ async-promise-queue@^1.0.3
< │  │  ├─ broccoli-plugin@^1.0.0
< │  │  ├─ fs-tree-diff@^0.5.2
< │  │  ├─ hash-for-dep@^1.0.2
< │  │  ├─ heimdalljs-logger@^0.1.7
< │  │  ├─ heimdalljs@^0.2.1
< │  │  ├─ mkdirp@^0.5.1
< │  │  ├─ promise-map-series@^0.2.1
< │  │  ├─ rimraf@^2.6.1
< │  │  ├─ rsvp@^3.0.18
< │  │  ├─ symlink-or-copy@^1.0.1
< │  │  └─ walk-sync@^0.3.1
< │  ├─ convert-source-map@1.5.1
< │  ├─ core-js@1.2.7
< │  ├─ detect-indent@3.0.1
< │  │  ├─ get-stdin@^4.0.1
< │  │  ├─ minimist@^1.1.0
< │  │  └─ repeating@^1.1.0
< │  ├─ ember-cli-babel@^6.8.2
< │  ├─ ember-cli-babel@6.8.2
< │  │  ├─ amd-name-resolver@0.0.7
< │  │  ├─ babel-plugin-debug-macros@^0.1.11
< │  │  ├─ babel-plugin-ember-modules-api-polyfill@^2.0.1
< │  │  ├─ babel-plugin-transform-es2015-modules-amd@^6.24.0
< │  │  ├─ babel-polyfill@^6.16.0
< │  │  ├─ babel-preset-env@^1.5.1
< │  │  ├─ broccoli-babel-transpiler@^6.1.2
< │  │  ├─ broccoli-debug@^0.6.2
< │  │  ├─ broccoli-funnel@^1.0.0
< │  │  ├─ broccoli-funnel@1.2.0
< │  │  │  ├─ array-equal@^1.0.0
< │  │  │  ├─ blank-object@^1.0.1
< │  │  │  ├─ broccoli-plugin@^1.3.0
< │  │  │  ├─ debug@^2.2.0
< │  │  │  ├─ exists-sync@0.0.4
< │  │  │  ├─ fast-ordered-set@^1.0.0
< │  │  │  ├─ fs-tree-diff@^0.5.3
< │  │  │  ├─ heimdalljs@^0.2.0
< │  │  │  ├─ minimatch@^3.0.0
< │  │  │  ├─ mkdirp@^0.5.0
< │  │  │  ├─ path-posix@^1.0.0
< │  │  │  ├─ rimraf@^2.4.3
< │  │  │  ├─ symlink-or-copy@^1.0.0
< │  │  │  └─ walk-sync@^0.3.1
< │  │  ├─ broccoli-source@^1.1.0
< │  │  ├─ clone@^2.0.0
< │  │  └─ ember-cli-version-checker@^2.0.0
---
> │  ├─ ember-cli-babel@^6.11.0
1776,1828c1724,1726
< │  ├─ ember-cli-sass@^7.0.0
< │  ├─ ember-popper@^0.6.4
< │  ├─ ember-truth-helpers@^1.3.0
< │  ├─ ember-truth-helpers@1.3.0
< │  │  ├─ broccoli-babel-transpiler@5.7.3
< │  │  │  ├─ babel-core@^5.0.0
< │  │  │  ├─ broccoli-funnel@^1.0.0
< │  │  │  ├─ broccoli-merge-trees@^1.0.0
< │  │  │  ├─ broccoli-persistent-filter@^1.4.2
< │  │  │  ├─ clone@^0.2.0
< │  │  │  ├─ clone@0.2.0
< │  │  │  ├─ hash-for-dep@^1.0.2
< │  │  │  ├─ heimdalljs-logger@^0.1.7
< │  │  │  ├─ json-stable-stringify@^1.0.0
< │  │  │  ├─ rsvp@^3.5.0
< │  │  │  └─ workerpool@^2.2.1
< │  │  ├─ broccoli-funnel@1.2.0
< │  │  │  ├─ array-equal@^1.0.0
< │  │  │  ├─ blank-object@^1.0.1
< │  │  │  ├─ broccoli-plugin@^1.3.0
< │  │  │  ├─ debug@^2.2.0
< │  │  │  ├─ exists-sync@0.0.4
< │  │  │  ├─ fast-ordered-set@^1.0.0
< │  │  │  ├─ fs-tree-diff@^0.5.3
< │  │  │  ├─ heimdalljs@^0.2.0
< │  │  │  ├─ minimatch@^3.0.0
< │  │  │  ├─ mkdirp@^0.5.0
< │  │  │  ├─ path-posix@^1.0.0
< │  │  │  ├─ rimraf@^2.4.3
< │  │  │  ├─ symlink-or-copy@^1.0.0
< │  │  │  └─ walk-sync@^0.3.1
< │  │  ├─ ember-cli-babel@^5.1.6
< │  │  ├─ ember-cli-babel@5.2.4
< │  │  │  ├─ broccoli-babel-transpiler@^5.6.2
< │  │  │  ├─ broccoli-funnel@^1.0.0
< │  │  │  ├─ clone@^2.0.0
< │  │  │  ├─ ember-cli-version-checker@^1.0.2
< │  │  │  └─ resolve@^1.1.2
< │  │  └─ ember-cli-version-checker@1.3.1
< │  │     └─ semver@^5.3.0
< │  ├─ eslint-plugin-ember-suave@^1.0.0
< │  ├─ globals@6.4.1
< │  ├─ home-or-tmp@1.0.0
< │  │  ├─ os-tmpdir@^1.0.1
< │  │  └─ user-home@^1.1.1
< │  ├─ js-tokens@1.0.1
< │  ├─ json5@0.4.0
< │  ├─ lodash@3.10.1
< │  ├─ path-exists@1.0.0
< │  └─ source-map-support@0.2.10
< │     ├─ source-map@0.1.32
< │     └─ source-map@0.1.32
< │        └─ amdefine@>=0.0.4
---
> │  ├─ ember-cli-sass@^7.1.4
> │  ├─ ember-popper@^0.8.3
> │  └─ ember-truth-helpers@^2.0.0
2439c2337
< ├─ ember-compatibility-helpers@0.1.0
---
> ├─ ember-compatibility-helpers@0.1.3
2951a2850
> │  ├─ babel-plugin-filter-imports@0.3.1
3111c3010,3011
< │  │  └─ semver@^5.3.0
---
> │  │  ├─ semver@^5.3.0
> │  │  └─ semver@5.5.0
3126c3026,3034
< │  └─ ember-macro-helpers@^0.17.0
---
> │  ├─ ember-compatibility-helpers@0.1.0
> │  │  ├─ babel-plugin-debug-macros@^0.1.11
> │  │  ├─ babel-plugin-debug-macros@0.1.11
> │  │  │  ├─ semver@^5.3.0
> │  │  │  └─ semver@5.5.0
> │  │  ├─ ember-cli-version-checker@^2.0.0
> │  │  └─ semver@^5.4.1
> │  ├─ ember-macro-helpers@^0.17.0
> │  └─ semver@5.4.1
3477a3386,3387
> ├─ ember-legacy-class-shim@1.0.1
> │  └─ ember-cli-version-checker@^2.0.0
3774,3775c3684,3687
< ├─ ember-popper@0.6.6
< │  ├─ babel-eslint@^8.0.1
---
> ├─ ember-popper@0.8.3
> │  ├─ @ember-decorators/argument@^0.8.10
> │  ├─ @ember-decorators/babel-transforms@^0.1.1
> │  ├─ babel-eslint@^8.0.3
3794,3795c3706,3707
< │  ├─ ember-cli-babel@^6.8.2
< │  ├─ ember-cli-babel@6.8.2
---
> │  ├─ ember-cli-babel@^6.10.0
> │  ├─ ember-cli-babel@6.10.0
3822c3734,3735
< │  │  └─ ember-cli-version-checker@^2.0.0
---
> │  │  ├─ ember-cli-version-checker@^2.1.0
> │  │  └─ semver@^5.4.1
3826c3739,3742
< │  ├─ ember-decorators@^1.3.0
---
> │  ├─ ember-compatibility-helpers@^0.1.3
> │  ├─ ember-decorators@^1.3.2
> │  ├─ ember-legacy-class-shim@^1.0.0
> │  ├─ ember-raf-scheduler@^0.1.0
3830c3746,3747
< │  └─ popper.js@^1.12.5
---
> │  ├─ popper.js@^1.12.9
> │  └─ semver@5.4.1
4179a4097,4098
> ├─ ember-raf-scheduler@0.1.0
> │  └─ ember-cli-babel@^6.6.0
5399,5400d5317
< ├─ eslint-plugin-ember-suave@1.0.0
< │  └─ requireindex@~1.1.0
7347d7263
< ├─ requireindex@1.1.0
8255c8171
< Done in 5.02s.
---
> Done in 2.12s.

Besides @ember-decorators/argument there's no major difference/addition.

@kybishop

This comment has been minimized.

Copy link
Owner

@kybishop kybishop commented Feb 15, 2018

Yeah, there will eventually be an @ember/component in a later version of Ember, but for now babel actually just transforms all @ember/something imports into the old style of importing. Ember is encouraging everyone to switch over early as a means of future-proofing.

I'll dig into babel and ember-decorators a bit to see why the import isn't being transformed appropriately.

@kybishop

This comment has been minimized.

Copy link
Owner

@kybishop kybishop commented Feb 15, 2018

@enkol could you share your any config related to babel (or ember-cli-babel) from ember-cli-build.js? This could just be a babel configuration issue, which might make sense if this isn't an issue in new projects.

@enkol

This comment has been minimized.

Copy link
Contributor Author

@enkol enkol commented Feb 16, 2018

Sure, my ember-cli-build.js is:

/* eslint-env node */
'use strict';

const targets = require('./config/targets');
const EmberApp = require('ember-cli/lib/broccoli/ember-app'); //eslint-disable-line node/no-unpublished-require

module.exports = function(defaults) {
  let buildOptions = {
    // Add options here
    babel: {
      compileModules: true,
      sourceMaps: 'inline'
    },
    autoprefixer: {
      browsers: targets.browsers,
      sourcemap: true
    },
    sassOptions: {
      sourceMapEmbed: true
    },
    'ember-math-helpers': {
      only: ['add', 'sub']
    },
    'ember-composable-helpers': {
      only: ['invoke', 'compute', 'toggle', 'toggle-action', 'filter-by', 'sort-by', 'group-by', 'chunk']
    }
  }

  if (process.env.EMBER_ENV === 'development') {
    // only during development mode
    buildOptions.tests = false;    
  }
    
  let app = new EmberApp(defaults, buildOptions);
  app.import('node_modules/string_score/string_score.js');
  return app.toTree();
};

I've tried the same buildOptions in a test project, it still works there.

By now, i've only tried to debug in the browser, to dig into the issue. But as you said, what's causing the issue is probably happening beforehand, when ember-cli builds the project. So i should try to debug in node. Do you have any hints where i could set breakpoints or if there is any debug logging to enable for babel?

@enkol

This comment has been minimized.

Copy link
Contributor Author

@enkol enkol commented Feb 16, 2018

When changing ember-attacher from 0.11.4 to a newer version, the version of the babel-plugin-filter-imports dependency changes from 0.3.1 to 1.1.1.
From the name of this dependency, one could assume it maybe affects the transformation of imports like @ember/component to how they are named in the browser. Probably there is some constellation in may app, which breaks the filtering, so that @ember/component doesn't get filtered or converted?

@kybishop

This comment has been minimized.

Copy link
Owner

@kybishop kybishop commented Feb 19, 2018

@enkol I believe this is likely the source of issues: https://github.com/babel/ember-cli-babel#modules

Is there a reason you need to set compileModules to true? I'm hoping setting it false (or ideally just removing it) will solve your issue.

I don't have a ton of experience debugging cli-level issues, so I can't help all that much :/

If messing with compileModules doesn't solve things, I'd suggest filing a bug in https://github.com/ember-cli/babel-plugin-ember-modules-api-polyfill. It's difficult to see how ember-attacher or ember-popper could be causing this issue on their own, so probably best to push the issue down to the source.

@enkol

This comment has been minimized.

Copy link
Contributor Author

@enkol enkol commented Feb 20, 2018

I played around with babel options like compileModules or includePolyfill. Also used vanilla ember-cli settings in ember-cli-build.js. Sadly no difference.

@kybishop Thanks for your support and suggestions! I'll close this issue here, as it's most likely not an ember-attacher issue anyways. Again, thanks for trying to help!

@enkol enkol closed this Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.