Skip to content

Tag: npm

Unable to import/export vuejs components

I have a folder like this. Classic and Modern are simple components with template, export default {} and a style. I am calling both inside index.js as: So, when I import this module as: I get this error Unknown custom element: – did you register the component correctly? For recursive components, make su…

Cordova Unable to load platformapi

I have been having this issue for few days now. Cordova won’t run in browser, error says browser is not added as a platform. However, trying to add browser as a platform, cause another error which says Unable to load platfromapi from platform. It also says that browser is not a valid platform. See scree…

Angular 4. Unexpected token export

Then i’m start the app by command ng serve in console i see error: Just start then angular application, install: bootstrap, jQuery, popper.js and then add styles & scripts files to angular-cli.json/angular.json angular-cli.json/angular.json: i’m use: Where i’m make a mistake? Some text o…

nodemon watch directory for changes

I know how to do nodemon server.js but what if I want to do nodemon ./src I want restart node on any changes in the directory of src. When I do above and it say cannot find module babelpracsrc I am also doing in another command window : npm run scripts:watch The script is That runs the watch but I

Can’t set NODE_ENV=production with npm and webpack

I’m trying to access process.env.NODE_ENV inside my app, but I only get process is not defined when I check it. package.json: webpack.config.js: const NODE_ENV = process.env.NODE_ENV ? process.env.NODE_ENV.toLowerCase() : ‘development’; and below : In the app source: And it seems that proces…