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

Lume components and components.ts conflict #659

Open
oscarotero opened this issue Sep 5, 2024 · 0 comments
Open

Lume components and components.ts conflict #659

oscarotero opened this issue Sep 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@oscarotero
Copy link
Member

Version

all

Platform

all

What steps will reproduce the bug?

I have this site:

/_components/title.vto
/components.ts
/index.vto

The title component exports some js code:

---
js: |
  console.log("title");
---
<h1>{{ content }}</h1>

The js code of the components is saved in /components.js. And /components.ts is renamed to /components.js so both pages have the same URL.

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

The code of both pages should be merged in the same file.

What do you see instead?

An error saying there are two pages with the same url.

Additional information

No response

@oscarotero oscarotero added the bug Something isn't working label Sep 5, 2024
@oscarotero oscarotero modified the milestone: 2.3.1 Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant