Skip to content

Ionic 8 + Capacitor 6 + Vue 3 + TypeScript project, ionic serve appears one warning and one error when open in chrome browser in macbook pro with M1 chip #160

Description

@akira32

I import the package:

npm install xmlrpc

And then use the lime to import to HomePage.vue.

import xmlrpc from 'xmlrpc';

There are my infomation as below when I ionic serve:
Does someone know how to solve those problems?

截圖 2024-09-04 晚上8 13 00
xmlrpc.js?v=eeb6d02a:2725 Module "stream" has been externalized for browser compatibility. Cannot access "stream.Stream" in client code. See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
get @ xmlrpc.js?v=eeb6d02a:2725
Show 1 more frame
Show lessUnderstand this warning
xmlrpc.js?v=eeb6d02a:4907 Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
    at xmlrpc.js?v=eeb6d02a:4907:50
    at node_modules/xmlrpc/node_modules/sax/lib/sax.js (xmlrpc.js?v=eeb6d02a:6145:7)
    at __require (chunk-F3OQE4AZ.js?v=eeb6d02a:14:50)
    at node_modules/xmlrpc/lib/deserializer.js (xmlrpc.js?v=eeb6d02a:6152:15)
    at __require (chunk-F3OQE4AZ.js?v=eeb6d02a:14:50)
    at node_modules/xmlrpc/lib/client.js (xmlrpc.js?v=eeb6d02a:6516:24)
    at __require (chunk-F3OQE4AZ.js?v=eeb6d02a:14:50)
    at node_modules/xmlrpc/lib/xmlrpc.js (xmlrpc.js?v=eeb6d02a:6694:18)
    at __require (chunk-F3OQE4AZ.js?v=eeb6d02a:14:50)
    at xmlrpc.js?v=eeb6d02a:6715:16

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions