Registry / devops / gcloud-core-app

gcloud-core-app

JSON →
library0.1.5jsnpmunverified

A Vue.js project setup using @vue/cli with gRPC-web, google-protobuf, and Element UI. Version 0.1.5 is the current stable release. It focuses on integrating Google Cloud services into a Vue application via gRPC-web. Differentiators include pre-configured gRPC-web and Element UI for rapid cloud-powered UI development. The package appears to be a scaffolded project template rather than a library, with no regular release cadence.

npm install gcloud-core-app
INSTALL
IMPORT
SIG · GCLOUD-CORE-APP
G
gcloud-core-app
devopsjavascriptv0.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Vue
import Vue from 'vue'
const Vue = require('vue')
Vue CLI projects typically use ES modules with import syntax.
ElementUI
import ElementUI from 'element-ui'
const ElementUI = require('element-ui')
Element UI is imported as default and then used via Vue.use().
grpc-web
import { GrpcWebClientBase } from 'grpc-web'
const grpc = require('grpc-web')
grpc-web is ESM-only in recent versions; named exports for client classes.
google-protobuf
import { Message } from 'google-protobuf'
const protobuf = require('google-protobuf')
google-protobuf provides named exports like Message, BinaryReader, etc.

Create a new Vue project with @vue/cli, then install gRPC-web, protobuf, and Element UI.

npm i -g @vue/cli vue create gcloud-core-vue npm i grpc-web -S npm i google-protobuf -S npm i element-ui -S npm run serve
Debug
Known issues
gotchaThis package is not a library but a project template; you cannot import from 'gcloud-core-app'.
fix
Do not import this package. Follow the README to create your own project.
affects: *
deprecatedvue-cli (version 3 and below) is deprecated. Use @vue/cli instead.
fix
Uninstall vue-cli with 'npm remove vue-cli', then install @vue/cli with 'npm i -g @vue/cli'.
affects: <4.0
gotchagrpc-web and google-protobuf are not compatible with browserify/require directly; must be used with bundler.
fix
Use Webpack or Vue CLI's built-in bundler. Ensure webpack configuration allows .js files from node_modules.
affects: >=1.0
gotchaElement UI is not maintained for Vue 3; this template uses Vue 2.
fix
If upgrading to Vue 3, use Element Plus instead.
affects: >=0.1
Errors
Common errors & fixes
Module not found: Error: Can't resolve 'grpc-web' in '/path/to/project'
Missing installation of grpc-web.
fix
Run: npm install grpc-web --save
Cannot find module 'google-protobuf'
google-protobuf package not installed.
fix
Run: npm install google-protobuf --save
Unknown custom element: <el-button> - did you register the component correctly?
Element UI not imported/registered in main.js.
fix
In main.js, add: import ElementUI from 'element-ui'; Vue.use(ElementUI);
Upgrade
Version history
0.1.5latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gcloud-core-app — npm install gcloud-core-app · libregistry