generator-jhipster-primeng: Failure on fresh jhipster 4.9.0 generated Monolithic app

After generating a simple monolithic app where I added the generator-jhipster-primeng from the marketplace nothing showed up in the menus. Ie. no “primeng” menu. Then I ran “yo jhipster-primeng” 1.0.5 and specified theme “Omega” and “Component groups” and selected all components. This cause the generator to specify the following output:

`WARNING the function copyExternalAssetsInWebpack is missing, you need to add the missing resource path in webpack.common.ts:

  • inside CopyWebpackPlugin function of webpack.common.ts file: { from: ‘./src/main/webapp/content/primeng’, to: ‘content/primeng’} WARNING the function addExternalResourcesToRoot is missing, you need to add the missing resource path in the head section of index.html file: Add the resources- <script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.1.0/fullcalendar.min.css"> <script src="https://www.google.com/recaptcha/api.js?render=explicit&onload=initRecaptcha" async defer></script> <script src="https://cdn.quilljs.com/1.0.0/quill.js"></script>
    <script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyA6Ar0UymhiklJBzEPLKKn2QHwbjdz3XV0" ></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.1.0/fullcalendar.min.js"></script>

The File src/main/webapp/content/scss/vendor.scss doesn’t exist!`

After running “./mvnw” nothing showed up. While keeping this process running, I started “npm start” and saw more components being downloaded/compiled. Finally I received this error: ERROR in ./src/main/webapp/app/primeng/data/gmap/gmapdemo.component.scss Module parse failed: /Users/tchristensen/Projects/tryouts/jhipster/brazil/src/main/webapp/app/primeng/data/gmap/gmapdemo.component.scss Unexpected token (5:0) You may need an appropriate loader to handle this file type. | */ | | .dimensions{ | width:100%; | height:400px; @ ./src/main/webapp/app/primeng/data/gmap/gmapdemo.component.ts 120:21-57 @ ./src/main/webapp/app/primeng/data/gmap/index.ts @ ./src/main/webapp/app/primeng/data/gmap/gmapdemo.module.ts @ ./src/main/webapp/app/primeng/primeng.module.ts @ ./src/main/webapp/app/app.module.ts @ ./src/main/webapp/app/app.main.ts @ multi (webpack)-dev-server/client?http://localhost:9060 webpack/hot/dev-server ./src/main/webapp/app/app.main

With the two processes running, I see no difference in the ui and no additional menus in either.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

Using npm install and npm start instead of yarn install and yarn start works! Deleted all in node_modules and used npm instead or yarn.