Closed MaciejBaj closed 9 years ago
I can't test this right now but try changing to D:\projects\maps before "jspm bundle app"
On 24 February 2015 at 01:43, MaciejBaj notifications@github.com wrote:
In my project I wanted to use plugin-jade with jspm version 0.14.0. After 'jspm install', regarding to plugin-jade readme file I tried to build bundled script that uses your plugin. It fails. I am working on Windows 7. When I tried on Linux- it works.
Here is message from terminal:
D:\projects\maps\jspm_packages\github\johnsoftek\plugin-jade@0.4.0>jspm bundle app Configuration file config.js doesn't exist, create it? [yes]: Building the bundle tree for app...
err Error: Error loading "test.jade!jade" at
Error loading "test.jade!jade" from "app" at file:D:\projects\maps\jspm_packages\github\johnsoftek\plugin-jade@0.4.0/app.js Error loading "jade-compiler" at file:D:\projects\maps\jspm_packages\github\johnsoftek\plugin-jade@0.4.0/jade-compiler.js Error loading "jade-compiler" from "jade" at file:D:\projects\maps\jspm_packages\github\johnsoftek\plugin-jade@0.4.0/jade.js ENOENT, open 'D:\projects\maps\jspm_packages\github\johnsoftek\plugin-jade@0.4.0\jade-compiler.js' — Reply to this email directly or view it on GitHub https://github.com/johnsoftek/plugin-jade/issues/4.
@MaciejBaj I reproduced your error by running jspm bundle from the wrong directory. When you run jspm bundle, jspm expects the current directory to contain config.json, so you need to run jspm bundle from D:\projects\maps.
now I am using runtime es6 compiler. The same error appears on browser logs.
@guybedford Any ideas on this one? Looks like the full file path is being appended to the url.
@MaciejBaj What is your http server set up?
@MaciejBaj this looks like a bug from jspm-npm that was recently fixed. Try running npm update jspm (-g if necessary) && jspm install -f
.
@johnsoftek I think you can close this bug, as I have tested the plugin on windows and it works on windows with latests JSPM v 0.16.0. There are however other issues, which I've fixed and opened a PR.
@MaciejBaj Would you mind registering an issue for the PR?
Also, I would like to find a solution that does not require changing the code when the Jade version is updated. It should just be a config change.
I confirm, the problem is solved with latests JSPM and plugin-jade.
In my project I wanted to use plugin-jade with jspm version 0.14.0. After 'jspm install', regarding to plugin-jade readme file I tried to build bundled script that uses your plugin. It fails. I am working on Windows 7. When I tried on Linux- it works.
Here is message from terminal: