spartan: Missing modules in hlm-form-field and hlm-input
Please provide the environment you discovered this bug in.
"@angular/cli": "^18.2.2",
"@angular/compiler-cli": "^18.2.0",
"@spartan-ng/cli": "^0.0.1-alpha.361",
Which area/package is the issue in?
input
Description
There are errors generated in two files:
hlm-input.directive.ts
import { BrnFormFieldControl } from '@spartan-ng/ui-form-field-brain';
import { ErrorStateMatcher, ErrorStateTracker } from '@spartan-ng/ui-forms-brain';
Cannot find module '@spartan-ng/ui-form-field-brain' or its corresponding type declarations
Cannot find module '@spartan-ng/ui-forms-brain' or its corresponding type declarations
hlm-form-field.component.ts
import { BrnFormFieldControl } from '@spartan-ng/ui-form-field-brain';
import { HlmErrorDirective } from './hlm-error.directive';
Cannot find module '@spartan-ng/ui-form-field-brain' or its corresponding type declarations
Please provide the exception or error you saw
✘ [ERROR] TS2307: Cannot find module '@spartan-ng/ui-form-field-brain' or its corresponding type declarations. [plugin angular-compiler]
components/ui-input-helm/src/lib/hlm-input.directive.ts:4:36:
4 │ import { BrnFormFieldControl } from '@spartan-ng/ui-form-field-brain';
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] TS2307: Cannot find module '@spartan-ng/ui-forms-brain' or its corresponding type declarations. [plugin angular-compiler]
components/ui-input-helm/src/lib/hlm-input.directive.ts:5:53:
5 │ ...tateMatcher, ErrorStateTracker } from '@spartan-ng/ui-forms-brain';
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Other information
Tailwind config
/** @type {import('tailwindcss').Config} */
module.exports = {
presets: [require("@spartan-ng/ui-core/hlm-tailwind-preset")],
content: ["./src/**/*.{html,ts}", "./components/**/*.{html,ts}"],
theme: {
extend: {},
},
plugins: [],
};
I would be willing to submit a PR to fix this issue
- Yes
- No
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 19 (7 by maintainers)
Commits related to this issue
- fix(form-field): add form field brain into peerDependencies (#365,#358,#351) - remove unused code - change docs from form-field to formfield - add ui-form-field-brain and ui-forms-brain into supporte... — committed to cjosue15/spartan by cjosue15 2 years ago
- fix(formfield): add brain form-field and forms into the generator CLI (#369) * fix(form-field): add form field brain into peerDependencies (#365,#358,#351) - remove unused code - change docs from... — committed to spartan-ng/spartan by cjosue15 2 years ago
- fix(formfield): add brain form-field and forms into the generator CLI (#369) * fix(form-field): add form field brain into peerDependencies (#365,#358,#351) - remove unused code - change docs from... — committed to elite-benni/spartan by cjosue15 2 years ago
I was trying to install
@spartan-ng/ui-formfield-brain. Now i can find it on npm too https://www.npmjs.com/package/@spartan-ng/ui-formfield-braini just pushed the final version (hopefully)
cli 0.0.1-alpha.364 & ui 0.0.1-alpha.355
you should be able to remove the ui-form-field-brain and dependency issues should be resolved
I’m facing an issue during installation itself:
3 different error logs: