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

Fix client plugins crashing hoodie server in Windows #867

Merged
merged 1 commit into from Mar 26, 2019
Merged

Fix client plugins crashing hoodie server in Windows #867

merged 1 commit into from Mar 26, 2019

Conversation

drodsou
Copy link
Contributor

@drodsou drodsou commented Mar 26, 2019

In Windows, adding a client plugin as described in http://docs.hood.ie/en/latest/guides/plugins.html will crash hoodie server with error:

Error: Cannot find module 'C:UsersUserdevhoodie-serverhoodieclient'

as backslashes in Windows paths are collapsed when building the string hoodieBundleSource.

The fix replaces backslashes in the client plugins paths with forward slashes, which work both in Linux and Windows.

In Windows adding a client plugin as described in http://docs.hood.ie/en/latest/guides/plugins.html will crash hoodie server with error
Error: Cannot find module 'C:UsersUserdevhoodie-serverhoodieclient' as backslashes in Windows paths are collapsed when building the string hoodieBundleSource. The fix replaces backslashes in the paths with forward slashes which work both in Linux and Windows.
@gr2m gr2m merged commit b897d3c into hoodiehq:master Mar 26, 2019
@gr2m
Copy link
Member

gr2m commented Mar 26, 2019

Thanks David!

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

Successfully merging this pull request may close these issues.

None yet

2 participants