{"id":25015,"library":"broadlume-common","title":"Broadlume Common Controls","description":"BroadlumeCommon is a set of shared Angular components and utilities (SimpleControlsModule) published as an npm package for internal use by Broadlume. The current stable version is 1.0.1, with no public release cadence or changelog. It includes TypeScript type definitions and requires Angular and its peer dependencies. Unlike general-purpose UI libraries, it is tightly coupled to Broadlume's internal architecture and not recommended for external use.","status":"active","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/broadlume/BroadlumeCommonControls","tags":["javascript","typescript"],"install":[{"cmd":"npm install broadlume-common","lang":"bash","label":"npm"},{"cmd":"yarn add broadlume-common","lang":"bash","label":"yarn"},{"cmd":"pnpm add broadlume-common","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Runtime dependency for Angular components","package":"@angular/core","optional":false},{"reason":"Required by Angular modules","package":"@angular/common","optional":false}],"imports":[{"note":"ESM default; CommonJS require will not work because the package is ESM-only.","wrong":"const SimpleControlsModule = require('broadlume-common')","symbol":"SimpleControlsModule","correct":"import { SimpleControlsModule } from 'broadlume-common'"},{"note":"Use type import to avoid bundling runtime code when only used for types.","wrong":"import { SimpleControlsModule } from 'broadlume-common' in a type-only context","symbol":"SimpleControlsModule (type)","correct":"import type { SimpleControlsModule } from 'broadlume-common'"},{"note":"The package exports an object-like module; default import is undefined.","wrong":"import BroadlumeCommon from 'broadlume-common' (no default export)","symbol":"* (barrel export)","correct":"import * as BroadlumeCommon from 'broadlume-common'"}],"quickstart":{"code":"import { NgModule } from '@angular/core';\nimport { SimpleControlsModule } from 'broadlume-common';\n\n@NgModule({\n  imports: [SimpleControlsModule]\n})\nexport class AppModule {}","lang":"typescript","description":"Demonstrates importing and using SimpleControlsModule in an Angular module."},"warnings":[{"fix":"Avoid using this package outside Broadlume projects.","message":"Package is internal and not intended for external use; API may break without notice.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Add dependency as 'broadlume-common': 'git+https://github.com/broadlume/BroadlumeCommonControls.git'","message":"No public registry (npmjs.com); install directly from GitHub repository.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Run 'npm run installtools' in the package directory before building.","message":"Requires Node.js and npm global tools (e.g., npm run installtools) to build from source.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure node_modules/broadlume-common has compiled output; add 'broadlume-common' to tsconfig paths if necessary.","cause":"Package installed from git but not built; or TypeScript path resolution fails.","error":"Cannot find module 'broadlume-common' or its corresponding type declarations."},{"fix":"Reinstall via 'npm install git+https://github.com/broadlume/BroadlumeCommonControls.git --save' and run 'npm run build' inside the package.","cause":"Webpack or bundler cannot locate the package because it is not in node_modules or build failed.","error":"Module not found: Error: Can't resolve 'broadlume-common' in ..."},{"fix":"Check Angular version compatibility; ensure SimpleControlsModule is imported in @NgModule.","cause":"Angular module not properly imported or the package version incompatible with Angular version.","error":"TypeError: Cannot read properties of undefined (reading 'ɵmod')"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}