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

serve -s dist does not render: "404 the requested path could not be found" #256

Open
clara-miralles opened this issue Jun 25, 2021 · 2 comments

Comments

@clara-miralles
Copy link

I did vue-cli-service build --target lib --name your-component-name src/main.js and builds correctly.
Local server works fine.
However cannot render after "serve -s dist".

Any idea why this could be?

Thanks in advance!

@karol-f
Copy link
Owner

karol-f commented Jun 25, 2021

Please check browser's console. Regards

@clara-miralles
Copy link
Author

Thanks Karol. Browser's console just says: Failed to load resource: the server responded with a status of 404 (Not Found).
In which file do you place the tag <script src="path/to/vue-custom-element.js"></script>?

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

No branches or pull requests

2 participants