Hello,
started to create my first custom component and getting the following error:
Component not registered: ud-semantic-breadcrumb
Does anyone have an idea what I have done wrong?
src\Components\breadcrumb.jsx
import React from "react";
import { Breadcrumb } from 'semantic-ui-react';
export default class UDSemanticBreadcrumb extends Component {
render() {
//for testing
return (
<h1>{this.props.id}</h1>
)
}
}
src\Components\index.js
import UDSemanticBreadcrumb from './breadcrumb';
UniversalDashboard.register("ud-semantic-breadcrumb", UDSemanticBreadcrumb);
src\Scripts\New-UDSemanticBreadcrump.ps1
@{
# The AssetID of the main JS File
assetId = $AssetId
# Tell UD this is a plugin
isPlugin = $true
# This ID must be the same as the one used in the JavaScript to register the control with UD
type = "ud-semantic-breadcrumb"
# An ID is mandatory
id = $Id
sections = $Sections
divider = $Devider
}
PS: I havent uploaded this project to github yet
PS: more information about this project is coming