react-xml-viewer 使用报错 error on line 1 at column 1: Start tag expected, '<' not found,帮忙看下啥问题, 因为单页使用,没有npm install 那些,直接 cdn引入了,是不能这么用么,还是用法上有什么问题呢? 源码: <!DOCTYPE html>
alissonmbr/react-xml-viewerPublic NotificationsYou must be signed in to change notification settings Fork20 Star35 Code Issues6 Pull requests5 Actions Projects Security Insights Additional navigation options Files main .github .storybook src .babelrc ...
React Native Doc Viewer (Supports file formats: xls,ppt,doc,xlsx,pptx,csv,docx,png,jpg,pdf,xml,binary ...) Resources Readme License MIT license Activity Stars 0 stars Watchers 1 watching Forks 1 fork Report repository Releases No releases published Packages No packages published ...
然而,根据我的检查,`react-xml-viewer` 在 CDN 上可能没有提供适合直接在 HTML 中使用的版本。通常,React 组件库是为 npm/yarn 设计的,并不总是提供浏览器兼容的 CDN 版本。 2. **使用 npm 安装**:尽管你说不想使用 npm,但这是最推荐的方法,因为大多数 React 组件和库都是按照这种方式设计的。你可以在...
include ':react-native-doc-viewer' project(':react-native-doc-viewer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-doc-viewer/android') Insert the following lines inside the dependencies block in android/app/build.gradle: compile project(':react-native-doc-...
include ':react-native-doc-viewer' project(':react-native-doc-viewer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-doc-viewer/android') Insert the following lines inside the dependencies block in android/app/build.gradle: compile project(':react-native-doc-...
npm install react-native-doc-viewer --save Add the plugin dependency to your Podfile, pointing at the path where NPM installed it: pod 'RNReactNativeDocViewer', path: '../node_modules/react-native-doc-viewer' pod 'RNReactNativeDocViewer', path: '../node_modules/react-native-doc-viewer...