Hi,
I’m trying to play with custom components and follow your documentation - but can’t get it to work.
- I’ve verified my Node.js installation is: v21.7.3. (with node --version in terminal) running on Mac OS.
- In a terminal performed: npm init @weweb/component
- When prompted entered a name for the component and selected “element”.
- Performed: npm install
- Performed: npm run serve
- Browsed: https://localhost:8080
(you mention “Advanced Settings” nothing of that kind in that page:
I guess that looks ok right?
- I launch weweb.io, from more-hamburger-menu I choose “Development”
- Then I click “Open dev editor”
- Dev editor opens, and I click “Dev” in the top menu
- I click the “+ Add Local element” button and get this:
- Expanding the drop-down shows the image below, not logical to me what to choose but I believe I should choose “Custom” so I do that.
- I give it a name and press “Save”
- The “this-explodes” element appears in the window and weweb restarts and gives this error:
I have tried it several times - but with the same result. I’ve read and read the documentation, I believe I’m doing it correctly, what am I missing here?