Copy link to clipboard
Copied
Hi, I'm trying to spin up a UXP plugin and use spectrum elements in the UI. However, when I attempt to run the plugin with a spectrum object I recieve the following error. I've looked all over and installed various packages via npm but no luck so far. Any help would be appreciated!
import React from "react";
import { WC } from "./WC.jsx";
import '@swc-uxp-wrappers/button/sp-button.js';
import "./Home.css";
export const Home = () => {
return (
<div>
<WC>
<p className="display">Congratulations! You just created your first React Plugin.</p>
</WC>
<sp-button variant="primary">I'm a SWC button</sp-button>
</div>
);
}
createTreeWalker(root, whatToShow, filter)
[ This feature is behind a feature flag. You must turn on enableSWCSupport in the featureFlags section of plugin manifest to use the same ]
Have you turned it on?
Or can you show the actual code?
Copy link to clipboard
Copied
createTreeWalker(root, whatToShow, filter)
[ This feature is behind a feature flag. You must turn on enableSWCSupport in the featureFlags section of plugin manifest to use the same ]
Have you turned it on?
Or can you show the actual code?