Skip to content

Missing _index.html when using pug #2469

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

Closed
1 task done
drochag opened this issue Jan 23, 2017 · 4 comments
Closed
1 task done

Missing _index.html when using pug #2469

drochag opened this issue Jan 23, 2017 · 4 comments
Assignees

Comments

@drochag
Copy link
Contributor

drochag commented Jan 23, 2017

  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 5.0.0-alpha.4 (tried with generator-angular-fullstack@alpha and then with canary branch on a local with npm link, problem persists on both)
Node v6.9.1
npm 3.10.10
Operating System macOS 10.12.2
Item Answer
Transpiler Babel
Markup Pug
CSS SCSS
Router ui-router
Client Tests Jasmine
DB SQL
Auth Y

Getting this on a new generated project

ERROR in   Error: Child compilation failed:
  Entry module not found: Error: Cannot resolve 'file' or 'directory' /Users/dan/Documents/projects/angularFullstack/client/_index.html in /Users/dan/Documents/projects/angularFullstack:
  Error: Cannot resolve 'file' or 'directory' /Users/dan/Documents/projects/angularFullstack/client/_index.html in /Users/dan/Documents/projects/angularFullstack
  
  - compiler.js:76 
    [angularFullstack]/[html-webpack-plugin]/lib/compiler.js:76:16
  
  - Compiler.js:214 Compiler.<anonymous>
    [angularFullstack]/[webpack]/lib/Compiler.js:214:10
  
  - Compiler.js:403 
    [angularFullstack]/[webpack]/lib/Compiler.js:403:12
  
  - Tapable.js:67 Compiler.next
    [angularFullstack]/[tapable]/lib/Tapable.js:67:11
  
  - CachePlugin.js:40 Compiler.<anonymous>
    [angularFullstack]/[webpack]/lib/CachePlugin.js:40:4
  
  - Tapable.js:71 Compiler.applyPluginsAsync
    [angularFullstack]/[tapable]/lib/Tapable.js:71:13
  
  - Compiler.js:400 Compiler.<anonymous>
    [angularFullstack]/[webpack]/lib/Compiler.js:400:9
  
  - Compilation.js:577 Compilation.<anonymous>
    [angularFullstack]/[webpack]/lib/Compilation.js:577:13
  
  - Tapable.js:60 Compilation.applyPluginsAsync
    [angularFullstack]/[tapable]/lib/Tapable.js:60:69
  
  - Compilation.js:572 Compilation.<anonymous>
    [angularFullstack]/[webpack]/lib/Compilation.js:572:10
  
  - Tapable.js:60 Compilation.applyPluginsAsync
    [angularFullstack]/[tapable]/lib/Tapable.js:60:69
  
  - Compilation.js:567 Compilation.<anonymous>
    [angularFullstack]/[webpack]/lib/Compilation.js:567:9
  
  - Tapable.js:60 Compilation.applyPluginsAsync
    [angularFullstack]/[tapable]/lib/Tapable.js:60:69
  
  - Compilation.js:563 Compilation.<anonymous>
    [angularFullstack]/[webpack]/lib/Compilation.js:563:8
  
  - Tapable.js:60 Compilation.applyPluginsAsync
    [angularFullstack]/[tapable]/lib/Tapable.js:60:69
  
  - Compilation.js:525 Compilation.seal
    [angularFullstack]/[webpack]/lib/Compilation.js:525:7
  
  - From previous event:
  
  - compiler.js:69 Object.compileTemplate
    [angularFullstack]/[html-webpack-plugin]/lib/compiler.js:69:10
  
  - index.js:47 Compiler.<anonymous>
    [angularFullstack]/[html-webpack-plugin]/index.js:47:40
  
  - Tapable.js:107 Compiler.applyPluginsParallel
    [angularFullstack]/[tapable]/lib/Tapable.js:107:14
  
  - Compiler.js:394 Compiler.compile
    [angularFullstack]/[webpack]/lib/Compiler.js:394:7
  
  - Compiler.js:46 Watching.<anonymous>
    [angularFullstack]/[webpack]/lib/Compiler.js:46:17
  
  - Tapable.js:67 Compiler.next
    [angularFullstack]/[tapable]/lib/Tapable.js:67:11
  
  - Shared.js:138 Compiler.compilerInvalid
    [angularFullstack]/[webpack-dev-middleware]/lib/Shared.js:138:5
  
  - Tapable.js:69 Compiler.next
    [angularFullstack]/[tapable]/lib/Tapable.js:69:14
  
  - index.js:312 Compiler.<anonymous>
    [angularFullstack]/[awesome-typescript-loader]/dist.babel/index.js:312:17
  
  - Tapable.js:71 Compiler.applyPluginsAsync
    [angularFullstack]/[tapable]/lib/Tapable.js:71:13
  
  - Compiler.js:44 Watching._go
    [angularFullstack]/[webpack]/lib/Compiler.js:44:16
  
  - Compiler.js:36 Watching.<anonymous>
    [angularFullstack]/[webpack]/lib/Compiler.js:36:8
  
  - Compiler.js:302 Compiler.readRecords
    [angularFullstack]/[webpack]/lib/Compiler.js:302:10
  
  - Compiler.js:33 new Watching
    [angularFullstack]/[webpack]/lib/Compiler.js:33:16
  
  - Compiler.js:161 Compiler.watch
    [angularFullstack]/[webpack]/lib/Compiler.js:161:17
  
  - Shared.js:153 Object.startWatch
    [angularFullstack]/[webpack-dev-middleware]/lib/Shared.js:153:29
  
  - Shared.js:215 Shared
    [angularFullstack]/[webpack-dev-middleware]/lib/Shared.js:215:8
  
  - middleware.js:22 module.exports
    [angularFullstack]/[webpack-dev-middleware]/middleware.js:22:15
  
  - express.js:105 
    /Users/dan/Documents/projects/angularFullstack/server/config/express.js:105:9
  


ERROR in ./client/components/navbar/navbar.component.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./navbar.html in /Users/dan/Documents/projects/angularFullstack/client/components/navbar
 @ ./client/components/navbar/navbar.component.js 28:12-36
Child html-webpack-plugin for "../client/index.html":
    
    ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' /Users/dan/Documents/projects/angularFullstack/client/_index.html in /Users/dan/Documents/projects/angularFullstack
webpack: bundle is now VALID.
@Awk34 Awk34 self-assigned this Jan 24, 2017
@imtiazahmedd
Copy link

@danmmx Bro!
did you solved this issues ??
I am facing the same problem . if you solve this issue please help me?

@raza2022
Copy link
Contributor

raza2022 commented Feb 2, 2017

@danmmx @imtiazahmedd am facing the same. have you solved. i tried many ways but no luck :(

@drochag
Copy link
Contributor Author

drochag commented Feb 2, 2017

Haven't had a time to investigate it, will be doing so maybe this weekend.

@Awk34
Copy link
Member

Awk34 commented Feb 2, 2017

The issue is that navbar.html is hardcoded in navbar.component.js here. Just change it to be .pug

Awk34 added a commit that referenced this issue Feb 2, 2017
@drochag drochag closed this as completed Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants