Open erickestefano opened 5 years ago
Removing the package-lock.json should take care of this error. However, after resolving this there are some more errors I have no clue how to resolve...
Right now: TypeError: PurifyPlugin is not a constructor when I try npm run build
Same here, I cannot install the project.
Try to remove package-lock.json file and
npm i
Then I recommend installing Webpack separately
npm i webpack --save-dev
Guys now it is working for me after not being able to install the packages!
The webpack was installed on my machine globally, in my case w/ version 4.7.0-3. Be sure as @MarkMudde said that the package.json is deleted before executing:
#npm i
It only worked for me after running the following command:
npm install --save-dev webpack webpack-cli html-webpack-plugin webpack-dev-server webpack-dev-middleware
I also had to change webpack to version 4 in package.json (webpack installs at version 5 by default):
"webpack": "^4.42.0",
This in addition to deleting package-lock.json. I will include TGit diff for reference.
I needed to see how to implement AngularJS app as a web component, so I'll include a screenshot from the working app.
BTW, one of the micro apps doesn't load, the above setup might need more work. When trying to access this url: http://localhost:4200/#/booking/payment
can't execute npm install, error: Cannot download "https://github.com/sass/node-sass/releases/download/v4.8.3/win32-x64-64_binding.node"