Skip to content

Internal import of context from commented out export in components/_internals #18

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

Closed
nickschot opened this issue Apr 6, 2022 · 3 comments · Fixed by #21
Closed

Internal import of context from commented out export in components/_internals #18

nickschot opened this issue Apr 6, 2022 · 3 comments · Fixed by #21

Comments

@nickschot
Copy link

Got a warning from Embroider about a missing export.

The target-action-support mixin provided by this addon tries to import context here: https://github.com/emberjs/ember-legacy-built-in-components/blob/main/addon/mixins/_target_action_support.js#L7

but the export is commented out here: https://github.com/emberjs/ember-legacy-built-in-components/blob/main/addon/components/_internals.ts#L64

@miguelcobain
Copy link

miguelcobain commented Jan 13, 2023

I just found the same warnings myself.

Here, we're importing context: https://github.com/emberjs/ember-legacy-built-in-components/blob/main/addon/mixins/_target_action_support.js#L7

But here we never export it: https://github.com/emberjs/ember-legacy-built-in-components/blob/main/addon/components/_internals.ts
(the export is commented)

What's the correct way forward?

@tcjr
Copy link

tcjr commented Mar 30, 2023

I'm seeing this now since upgrading to Ember 4 and updating my code to use this. I have a component with this import:

import { TextArea } from "@ember/legacy-built-in-components";

and the build outputs this twice:

WARNING in ./node_modules/@ember/legacy-built-in-components/mixins/_target_action_support.js 36:20-34
export 'context' (imported as 'context') was not found in '../components/_internals' (possible exports: HAS_BLOCK, isSimpleClick)
 @ ./node_modules/@ember/legacy-built-in-components/mixins/text-support.js 4:0-59 113:28-47
 @ ./node_modules/@ember/legacy-built-in-components/components/text-field.js 11:0-54 51:35-51
 @ ./node_modules/@ember/legacy-built-in-components/index.js 39:18-52

@derrabauke
Copy link

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

Successfully merging a pull request may close this issue.

4 participants