-
-
Notifications
You must be signed in to change notification settings - Fork 830
Closed
Copy link
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within Stencil
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
latest
Current Behavior
I’m generating tooltip content node dynamically (on the fly) inside a Stencil component and using render() from @stencil/core
import { render } from '@stencil/core';
private _createTooltipContent() {
const el = document.createElement('temp');
render(this._renderTooltipContent(), el);
}
This works in the normal build like dist target, but when I switch to custom elements:
{
type: 'dist-custom-elements',
customElementsExportBehavior: 'auto-define-custom-elements',
externalRuntime: false, // tried making true, still same issue
}
I get ReferenceError: render is not defined
Expected Behavior
should work same as dist output target
System Info
Steps to Reproduce
here is codesandbox to reproduce the issue (make npm run start:custom-elements to preview)
Code Reproduction URL
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within Stencil