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

In windows while running hem server or watch getting error that resource //public not found for static mapping #96

Open
ravitejac opened this issue May 8, 2018 · 1 comment
Assignees

Comments

@ravitejac
Copy link

Hi,

While running hem server or watch getting error saying that as listed below:

$ hem server
Starting Server at http://localhost:9294
ERROR: The resource \public not found for static mapping

$ hem watch
Building application: application
C:\Users\elancer\AppData\Roaming\npm\node_modules\hem\node_modules\fs-extra\lib\ mkdirs\mkdirs-sync.js:49
throw err0
^

Error: UNKNOWN: unknown error, mkdir '\public\application.css'
at Object.fs.mkdirSync (fs.js:885:18)
at Object.mkdirsSync (C:\Users\elancer\AppData\Roaming\npm\node_modules\hem\ node_modules\fs-extra\lib\mkdirs\mkdirs-sync.js:31:9)
at CssPackage.Package.build (C:\Users\elancer\AppData\Roaming\npm\node_modul es\hem\lib\package.js:289:14)
at Application.build (C:\Users\elancer\AppData\Roaming\npm\node_modules\hem\ lib\package.js:142:27)
at Hem.buildApps (C:\Users\elancer\AppData\Roaming\npm\node_modules\hem\lib\ hem.js:259:26)
at Hem.watch (C:\Users\elancer\AppData\Roaming\npm\node_modules\hem\lib\hem. js:155:12)
at Hem.exec (C:\Users\elancer\AppData\Roaming\npm\node_modules\hem\lib\hem.j s:213:27)
at Function.Hem.exec (C:\Users\elancer\AppData\Roaming\npm\node_modules\hem\ lib\hem.js:53:34)
at Object. (C:\Users\elancer\AppData\Roaming\npm\node_modules\hem \bin\hem:18:14)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3

Can you please help out of this issue.

Thanks and Regards,
Raviteja
screenshot

@zcoffin86
Copy link

I ran into the same issue with Hem on Windows. If you force your path.sep = '/' in package.js just before line 181 (in Application.prototype.applyRootDir function) I think you'll find this error is resolved.

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

3 participants