小编AZ *_* SH的帖子

如何在 StackBlitz 上安装 npm 包?

我只想在 StackBlitz 上为 angular 安装 npm 包。由于 StackBlitz 上没有终端,我该怎么做?

javascript npm angular stackblitz

14
推荐指数
1
解决办法
5264
查看次数

node_modules/rxjs/BehaviorSubject没有导出的成员'BehaviorSubject'

我正在做我的第一个Angular项目,我正在使用角度服务.无论如何,我得到了这个错误BehaviorSubject.顺便说一句,我正在关注youtube上的教程.

错误

BehaviorSubject

data.service.ts

import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';

@Injectable()
export class DataService {

  constructor() { }
}
Run Code Online (Sandbox Code Playgroud)

typescript angular

10
推荐指数
1
解决办法
7797
查看次数

TypeError:无法解构“vue.ssrUtils”的属性“createComponentInstance”,因为它为空

当我使用 vue-next 从 Vue 2 升级到 Vue 3 后,我收到了由@vue/server-renderer.

TypeError: Cannot destructure property 'createComponentInstance' of 'vue.ssrUtils' as it is null.
  at Object../node_modules/@vue/server-renderer/dist/server-renderer.cjs.js (/path-to-project/dist/js/webpack:/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:125:1
Run Code Online (Sandbox Code Playgroud)

看着node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:125:1

var vue = require('vue');
// some code here ...
const { createComponentInstance, /* other extracted vars*/ } = vue.ssrUtils; // line 125
Run Code Online (Sandbox Code Playgroud)

好像vue.ssrUtilsnull

包.json

{
  "dependencies": {
    ...
    "@vue/server-renderer": "^3.0.0",
    "vue": "^3.0.0",
  }
}
Run Code Online (Sandbox Code Playgroud)

javascript vue.js

5
推荐指数
1
解决办法
3243
查看次数

Ionic 4:您需要使用不同的包名称,因为 Google Play 中已存在“io.ionic.starter”

我正在尝试将我的离子应用程序部署到 Google Play。但是,当我上传应用程序 apk 文件时,我收到此错误消息You need to use a different package name because "io.ionic.starter" already exists in Google Play.根据此线程:将基于 Ionic 构建的 apk 上传到 google playstore 时出错我需要更改我的文件,我只在具有此内容的config.xml路径中看到配置文件app/res/xml/config.xml

<?xml version='1.0' encoding='utf-8'?>
<widget version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <access origin="*" />

</widget>
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?请注意,我有这个capacitor.config.json

{
  "appId": "io.ionic.stackie",
  "appName": "Stackie",
  "bundledWebRuntime": false,
  "npmClient": "npm",
  "webDir": "www",
  "cordova": {}
}
Run Code Online (Sandbox Code Playgroud)

android android-studio ionic-framework ionic4

1
推荐指数
1
解决办法
5427
查看次数