components icon indicating copy to clipboard operation
components copied to clipboard

Can't use md-textarea component

Open b-ponomarenko opened this issue 10 years ago • 13 comments

Bug, feature request, or proposal:

Can't use md-textarea component

What is the expected behavior?

I expect to see md-textarea element

What is the current behavior?

In source code md-textarea component is exist, but in build isn't exist ("@angular/material": "^2.0.0-alpha.9-3")

What are the steps to reproduce?

  1. Create simple project (ng new test)
  2. Install material (npm i @angular/material -S)
  3. Add material to project
  4. Try to use md-textarea compoent

P.S. If I open source code of md-input component I not see template for md-textarea component, but in github repo i see it :(

my package.json

{
  "name": "frontend",
  "version": "0.0.0",
  "license": "MIT",
  "angular-cli": {},
  "scripts": {
    "start": "ng serve",
    "lint": "tslint \"src/**/*.ts\"",
    "test": "ng test",
    "pree2e": "webdriver-manager update",
    "e2e": "protractor"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "2.0.0",
    "@angular/compiler": "2.0.0",
    "@angular/core": "2.0.0",
    "@angular/forms": "2.0.0",
    "@angular/http": "2.0.0",
    "@angular/material": "^2.0.0-alpha.9-3",
    "@angular/platform-browser": "2.0.0",
    "@angular/platform-browser-dynamic": "2.0.0",
    "@angular/router": "3.0.0",
    "core-js": "^2.4.1",
    "rxjs": "5.0.0-beta.12",
    "ts-helpers": "^1.1.1",
    "zone.js": "^0.6.23"
  },
  "devDependencies": {
    "@types/jasmine": "^2.2.30",
    "angular-cli": "1.0.0-beta.16",
    "codelyzer": "~0.0.26",
    "jasmine-core": "2.4.1",
    "jasmine-spec-reporter": "2.5.0",
    "karma": "1.2.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-remap-istanbul": "^0.2.1",
    "protractor": "4.0.9",
    "ts-node": "1.2.1",
    "tslint": "3.13.0",
    "typescript": "2.0.2"
  }
}

b-ponomarenko avatar Nov 05 '16 15:11 b-ponomarenko

md-textarea is in master but not yet released

quanterion avatar Nov 05 '16 17:11 quanterion

@quanterion what is easyest way to use it?

b-ponomarenko avatar Nov 05 '16 18:11 b-ponomarenko

Easiest would be to wait for the next release. Otherwise you'd need to clone the repo and build a local copy

clydin avatar Nov 05 '16 21:11 clydin

What's up with releases anyway? Before Angular 2 went out of beta there were npm releases every couple of days, now we're stuck with alpha-9.3 for over a month and that package is seriously broken with Angular 2.1.2 like transparent side navs, native controls appearing side by side with their Material 2 counterpart and the list goes on. Am I supposed to clone the repo now to be able to use Material 2 along with the latest Angular 2 release? Looking forward to reporting to product management already.

erasethis avatar Nov 06 '16 09:11 erasethis

npm install --save @angular/material@experimental this tag has it

jmcgoldrick avatar Nov 06 '16 09:11 jmcgoldrick

This is alpha level software; expect things to not work, be unfinished, etc.

clydin avatar Nov 06 '16 15:11 clydin

I'm aware of that, what is annoying though is that I have to come here in order to learn how to get an npm package of the current version. I would have expected to get that same piece of information on npm.org, but the page for material2 hasn't been updated in weeks.

Anyway, things finally started working again so I'm out of here ;)

erasethis avatar Nov 06 '16 17:11 erasethis

@erasethis I can understand your point, but actually I think the devs are doing a great job and I expect a new alpha version in the next couple of days with bug fixes and some new features. Releasing a new version for every commit or every day is not useful. But a new version at least every month would be awesome.

dahaupt avatar Nov 07 '16 09:11 dahaupt

@jmcgoldrick

npm install --save @angular/material@experimental this tag has it

Where did you get that from? I can't find that command anywhere :(

dahaupt avatar Nov 07 '16 09:11 dahaupt

@dahaupt I'm kind of new to node.js but I'll try to help with what I know. If you wanna get information about the material package type the following command: npm view @angular/material You will see that there are 2 dist-tags, 'latest' which is latest stable release and an other one 'experimental'. When you install a package you can specify the distribution tag by appending the package with @dist-tag So the following command will install the 'experimental' version of the '@angular/material' package: npm install --save @angular/material@experimental

Ploppy3 avatar Nov 07 '16 11:11 Ploppy3

@Ploppy3 Thanks a lot, npm view was new to me :)

dahaupt avatar Nov 07 '16 13:11 dahaupt

The textarea hasn't been released yet. You can see the status of any component in the README and see changes to the library in the CHANGELOG

jelbourn avatar Nov 09 '16 04:11 jelbourn

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.