-
Notifications
You must be signed in to change notification settings - Fork 5
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
Test windows support #8
Comments
Doesn't work out of the box in Windows. Seems to be a problem with directory handling (\ or double \ instead of /). I managed to get stuff working (serve + live reload) with a dirty hack though. Had to modify dist/config.js (line 40) and dist/index.js (line 331) The url parameter didn't work. I just hardcoded those values for now. |
This issue still persists in the new version, tested with NPM 6 and 8. I'll try to test if I can find a solution that works across all environments. |
Awesome thanks, realistically I won’t be able to test windows support so if you are able to that would be awesome! |
For now it seems that if I change the following (config.js line 26 and 30): to directory handling seems to work within Windows. Is the preceding '/' required? The variable dir contains initially process.cwd(), which should already contain the preceding / within Unix environments. |
Thank you for this awesome tool. I want to use it. My team works on windows. I tried making the changes discussed but I was unable to get it working. When I run
I am using the config file sample from the README. |
I created a fork with the aforementioned fixes You can try that if you want. |
Trying it, thank you! |
@jhholm thanks for creating that fork. Unfortunately, I still receive the same error :: exiting :: couldn't find a valid systemjs-tools config It is possible I am doing something incredibly bone-headed. I am running Windows 10 pro 64bit under NodeJS 8.7.0 and [email protected]. I installed the package using npm install --global jhholm/systemjs-tools#master I then created the configuration file mentioned in fs = require('fs');
// Specify keys for localhost
module.exports.config.serve.keys = {
key: fs.readFileSync('localhost.key', 'utf-8'),
cert: fs.readFileSync('localhost.crt', 'utf-8'),
ca: fs.readFileSync('localhost.key', 'utf-8'),
};
module.exports.config.channel = {
keys: module.exports.config.serve.keys
}; Then from the that file's containing directory, I ran
Thanks for your assistance. |
I tested with your config file, and I get the same error. I suppose the config file might be the issue. E.g. this should work.
|
Make sure this works with windows
The text was updated successfully, but these errors were encountered: