I'm new in Jhipster. After install it last version 7 got this error when try to import JDL: ERROR! Cannot find module 'ajv/dist/compile/context'
Try downgradring to version 6, but same error.
Any advice?
Thanks
Complete stack error:
ERROR! Cannot find module 'ajv/dist/compile/context'
Require stack:
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/ajv-formats/dist/limit.js
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/ajv-formats/dist/index.js
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/conf/dist/source/index.js
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/generator-jhipster/generators/statistics.js
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/generator-jhipster/generators/app/prompts.js
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/generator-jhipster/generators/app/index.js
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/yeoman-environment/lib/store.js
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/yeoman-environment/lib/environment.js
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/generator-jhipster/cli/environment-builder.js
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/generator-jhipster/cli/program.js
/Users/rafa/desarrollo/personal/jhipster/myapp/node_modules/generator-jhipster/cli/cli.js
/usr/local/lib/node_modules/generator-jhipster/cli/jhipster.js
try this on project directory
rm -rf node_modules
and then
npm install
Related
I am using angular11 and after removing the bootstrap from my project it gives below error when run command ng build --prod
Earlier it is working fine. i tried to update core and terser depenadicies but no luck. please help.
Error: scripts.d4d60eb3a58ff1e99223.js from Terser
Unexpected character '#' [scripts.d4d60eb3a58ff1e99223.js:3,0]
at js_error (D:\Projects\PorticoWebApp\node_modules\terser\dist\bundle.min.js:550:11)
at parse_error (D:\Projects\PorticoWebApp\node_modules\terser\dist\bundle.min.js:686:9)
at Object.next_token [as input] (D:\Projects\PorticoWebApp\node_modules\terser\dist\bundle.min.js:1119:9)
at peek (D:\Projects\PorticoWebApp\node_modules\terser\dist\bundle.min.js:1254:56)
at next (D:\Projects\PorticoWebApp\node_modules\terser\dist\bundle.min.js:1259:24)
at parse (D:\Projects\PorticoWebApp\node_modules\terser\dist\bundle.min.js:1248:15)
at minify (D:\Projects\PorticoWebApp\node_modules\terser\dist\bundle.min.js:27665:42)
at minify (D:\Projects\PorticoWebApp\node_modules\terser-webpack-plugin\dist\minify.js:162:24)
at Object.transform (D:\Projects\PorticoWebApp\node_modules\terser-webpack-plugin\dist\minify.js:175:10)
at execFunction (D:\Projects\PorticoWebApp\node_modules\jest-worker\build\workers\processChild.js:145:17)
Can you re-install package after that delete Terser package in node-modules. If doesn't solve the problem, can you type package version.
I'm using Windows 10. I downloaded Cabal.exe, put it in my ghc-8.8.1\bin\ directory and ran it with command cabal update. It did nothing for a while, then it ended without any messages.
Now when I run cabal install random (trying to install package "random"), I get the following error:
cabal: Error: Could not find module: System.Random with any suffix:
["gc","chs","hsc","x","y","ly","cpphs","hs","lhs","hsig","lhsig"]. If the
module is autogenerated it should be added to 'autogen-modules'.
I have no clue why it does this.
I also tried installing the package manually (following the steps from here) - downloaded package random-1.1.tar.gz and ran:
cd filepathtopackage
c:\Program Files\Apps\ghc-8.8.1\bin\runhaskell.exe Setup configure
This for a change gives me the following error:
| C:\Program Files\Apps\ghc-8.8.1\lib\Cabal-3.0.0.0\HSCabal-3.0.0.0.o: unknown symbol '.file'
Setup: Setup: unable to load package 'Cabal-3.0.0.0'
When I run ghc-pkg list, Cabal is in there, so again, no clue why it does this.
Does anyone have any tips on how to resolve this?
I am trying to use https://www.npmjs.com/package/node-webcrypto-ossl this module in an electron project.
When I try to build it gives me following error.
g++: error: /home/username/.electron-gyp/.node-gyp/4.0.0/deps/openssl/openssl/lib/libcrypto.a: No such file or directory
nodessl.target.mk:167: recipe for target 'Release/obj.target/nodessl.node' failed
This module works ok in node only project.
It appears the openssl dependency is missing, were dependencies installed?
Please I did not know what went wrong in meteor app I'm developing that caused the display of this error at the console:
Error: Can't find npm module 'meteor/session'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?
I have done npm install, and npm init from my project directory yet the error persisted.
Thanks for your anticipated assistance.
You need to remove 'meteor' from your Session import statement:
import { Session } from 'session'
I am currently trying to develop an app using Ionic 2 and Angular 2 with Typescript version. I decided to use the library amqp-ts to include messaging in my app. I installed the library via npm like:
npm install amqp-ts
Everything went fine and now I've got something like this:
/ app root directory
+ node_modules
- amqp-ts
- lib
- amqp-ts.d.ts
- node_modules
- amqplib
- bluebird
- winston
The problems begin now: I import the library into my component as it is done in the example of the documentation...
import * as Amqp from "amqp-ts";
... and when I try to deploy the app I get the next error messages:
TypeScript error: C:/APPs/Test/Ionic2Angular2App/node_modules/amqp-ts/lib/amqp-ts.d.ts(2,26): Error TS2307: Cannot find module 'bluebird'.
TypeScript error: C:/APPs/Test/Ionic2Angular2App/node_modules/amqp-ts/lib/amqp-ts.d.ts(50,12): Error TS2304: Cannot find name 'Buffer'.
1. The line related to the first error message
// exported Typescript type definition for AmqpSimple
import * as Promise from "bluebird";
[...]
2. The line related to the second error message (same file: amqp-ts.d.ts)
export class Message {
content: Buffer;
[...]
}
I hope you can help me, please.
Additionally to regular package install you need to install TypeScript typings. Typings are like header files, they contain all methods/classes/interfaces definitions.
To install typings you need a typings tool. The best way is to install it globally so you can use it in every project
npm install typings --global
Then installing new typings inside your project is pretty simple, first search for library:
typings search bluebird
Install it :
typings install --save bluebird
More info : https://github.com/typings/typings
I too faced same issue, but for me above answer is not working.
While simply running :
npm i bluebird
resolving the issue