-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unable to create subtheme as documented #821
Comments
Can you run |
Also can you add the faulty version to a branch in your subtheme repo so we could test things out better? |
and https://github.com/imarc/fractal-theme-hydrogen/tree/fractal-821 Initially I saw different versions of mandelbrot (1.4 on the parent repo, 1.7 in the theme) but I resolved that so they're both 1.7.0 (edit: I did that before I even submitted the bug.) |
@khamer those logs are from your subtheme's main branch, not the fractal-821 branch, right? Or I'm missing something, because it should log mandelbrot as a dependency of your subtheme. If I'm right, then I'd be more interested to see what the dependency tree is like with the broken version :) |
Here are the versions from the fractal-821 branch (the broken branch) of the subtheme. |
:) I need the logs from the project where your subtheme is installed. What I'm getting at is that if your project installs frctl/web@0.x (from frctl/fractal) and your theme installs frctl/web@0.y (from frctl/mandelbrot) and those versions don't semver-match, npm won't dedupe them & the instanceof check will fail because they both use different definitions of the Theme class. From the previous logs, I don't see how your subtheme is installed in your project at all. |
Got it - so I set this up, confirmed the versions, and running fractal worked. So went back to see what I was doing differently - and figured out that this has to do with me using npm link. So I had run |
Yeah with Is this issue resolved then for now? |
I've made a simple subtheme here - https://github.com/imarc/fractal-theme-hydrogen
It works, but I had to pass mandelbrot from my parent repository into my theme:
If I require
@frctl/mandelbrot
within my subtheme instead of passing it in, I get the following error building the outer pattern library:I understand the docs may be out of date with the Fractal/Mandelbrot updates, but I'd guess that this is a real bug where a subtheme has a different Theme object (because it's using a different
@frctl/mandelbrot
object) and the check in web.js can't be passed anymore and might need to be removed or reworked. Thoughts?Context
The text was updated successfully, but these errors were encountered: