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

Errors: light-dom #378

Open
scottalan opened this issue Apr 19, 2023 · 0 comments
Open

Errors: light-dom #378

scottalan opened this issue Apr 19, 2023 · 0 comments

Comments

@scottalan
Copy link
Member

scottalan commented Apr 19, 2023

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch @phase2/[email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/@phase2/outline-core/src/controllers/light-dom-styles.ts b/node_modules/@phase2/outline-core/src/controllers/light-dom-styles.ts
index 3f22952..c0aa099 100644
--- a/node_modules/@phase2/outline-core/src/controllers/light-dom-styles.ts
+++ b/node_modules/@phase2/outline-core/src/controllers/light-dom-styles.ts
@@ -1,6 +1,6 @@
 /* eslint-disable no-console */
 import { ReactiveControllerHost, CSSResultGroup, CSSResult } from 'lit';
-import { addScopeToStyles } from '../internal/light-dom';
+import { addScopeToStyles } from '@phase2/outline-core/src/internal/light-dom.mjs';
 
 /**
  * The LightComStyles ReactiveController.
diff --git a/node_modules/@phase2/outline-core/src/internal/light-dom.mjs b/node_modules/@phase2/outline-core/src/internal/light-dom.mjs
index 22a49cc..da2a1f1 100644
--- a/node_modules/@phase2/outline-core/src/internal/light-dom.mjs
+++ b/node_modules/@phase2/outline-core/src/internal/light-dom.mjs
@@ -1,4 +1,4 @@
-import cssTools from '@adobe/css-tools';
+import * as cssTools from '@adobe/css-tools';
 
 /**
  * Helper function to add Scope to a specific CSS Selector.

This issue body was partially generated by patch-package.

@scottalan scottalan changed the title WIP: will come back to this... Errors: light-dom Apr 20, 2023
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.

1 participant