Registry / development / shdatalink-test-materials

shdatalink-test-materials

JSON →
library0.1.6jsnpmunverified

A business component library for PC, built with React and TypeScript. Current stable version: 0.1.6. Maintained for use within the Shengyuan DataLink ecosystem. This package is intended for low-code development and includes a set of React UI components. It requires React 16+, ReactDOM 16+, and moment.js as peer dependencies. Differentiator: integrates with Alibaba's low-code engine for rapid component development and debugging.

npm install shdatalink-test-materials
INSTALL
IMPORT
SIG · SHDATALINK-TEST-MA
S
shdatalink-test-materials
developmentjavascriptv0.1.6
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.

default
import MyComponent from 'shdatalink-test-materials'
const MyComponent = require('shdatalink-test-materials')
ESM-only; no UMD/CJS bundles.
named exports
import { Button, Table } from 'shdatalink-test-materials'
import shdatalinkTestMaterials from 'shdatalink-test-materials'
Use named imports for individual components.
TypeScript types
import type { ButtonProps } from 'shdatalink-test-materials'
Types are included; use type imports for type-only usage.

Shows minimal setup with peer dependencies and usage of a Button component.

// Install peer dependencies npm install react@^16.0.0 react-dom@^16.0.0 moment@latest // Install the library npm install shdatalink-test-materials // Use a component import React from 'react'; import { Button } from 'shdatalink-test-materials'; function App() { return ( <div> <Button type="primary">Click me</Button> </div> ); } export default App;
Debug
Known issues
gotchaRequires React 16.x (not 17+ or 18+). Using a newer React version may cause incompatibility.
fix
Use React 16.x. Check peer dependencies.
affects: 0.1.6
gotchamoment.js is a peer dependency with version 'latest', which may cause unexpected breaking changes if moment updates.
fix
Pin moment to a known compatible version, e.g., moment@2.29.4.
affects: >=0.1.0
gotchaThe library appears to be a private/internal package; no public documentation available beyond the README.
fix
Contact the maintainers or refer to internal documentation.
affects: >=0.1.0
Errors
Common errors & fixes
Module not found: Can't resolve 'moment'
moment is not installed as a peer dependency.
fix
Run: npm install moment@latest
Cannot find module 'shdatalink-test-materials' or its corresponding type declarations.
Package not installed or not in node_modules.
fix
Run: npm install shdatalink-test-materials
TypeError: Cannot read property 'createElement' of undefined (React 18)
Using React 18+ which is incompatible with the library's React 16 peer dependency.
fix
Downgrade to React 16.x or use an alias.
Upgrade
Version history
0.1.6latest on npm
Audit
Dependencies
momentrequiredpeer dependency for date handling
reactrequiredpeer dependency for UI components
react-domrequiredpeer dependency for rendering
Agent activity
55 hits · last 30 days
node
46
OpenAI (training)
1
Resources
shdatalink-test-materials — npm install shdatalink-test-materials · libregistry