Nx: @nrwl/[email protected] breaks calculation of relative paths in nx-enforce-module-boundaries on windows

Created on 21 Feb 2018  路  5Comments  路  Source: nrwl/nx

nx-enforce-module-boundaries produces error: "...library imports must start..."
for cases like "import { AppComponent } from './app.component';" in app.component.spec.ts
Both files are located in the same directory.
The problem is not reproduced in @nrwl/[email protected]
OS: Windows

bug

Most helpful comment

created a new pr with the latest changes from master (that are great by the way, using the official angular cli now) - ci is passing ...

All 5 comments

I already created a PR for that, maybe you have some thoughts on it? not sure why the CI failed...

Error: spawnSync /bin/sh ENOENT
at _errnoException (util.js:1024:11)
at spawnSync (child_process.js:579:20)
at Object.execSync (child_process.js:635:13)
at Object. (/Users/keremozdemir/.npm-global/lib/node_modules/@nrwl/schematics/bin/create-nx-workspace.js:77:21)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)

Same issue as OP

created a new pr with the latest changes from master (that are great by the way, using the official angular cli now) - ci is passing ...

@skydever thanks for the patch, be great for this to be in the next release (pretty please)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Koslun picture Koslun  路  3Comments

vimalraj-a picture vimalraj-a  路  3Comments

jon301 picture jon301  路  3Comments

MichaelWarneke picture MichaelWarneke  路  3Comments

jasedwards picture jasedwards  路  3Comments