Questions tagged [dart-pub]

Pub is a package manager for Dart applications and libraries.

Pub is a package manager for Dart applications and libraries. You can find packages to use in a project or publish packages to the package repository. Pub automatically keeps track of dependencies to other packages and makes sure that the dependencies use the right version of a package.

Basics:

  • Use pub get to get dependencies
  • Use pub upgrade to upgrade a dependency
  • Use pub publish to make your library available for others

Resources:

1128 questions
0
votes
0 answers

Dart - Error to page load after pub serve

I have a dart project with this transforms transformers: - angular2: platform_pipes: - 'package:angular2/common.dart#COMMON_PIPES' entry_points: web/main.dart resolved_identifiers: BrowserClient:…
Shoshana Tzi
  • 99
  • 4
  • 10
0
votes
1 answer

Firebase login with AngularDart in Chrome browser

I am testing a web app of firebase login with angular Dart in Chrome browser at localhost, but while clicking on the sign-in the popup for login gets disappeared within 1 sec and doesn't result with successful login. While testing it on Chromium…
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
0
votes
1 answer

PWA Worker throws an error with AngularDart

I am trying to add offline capabilities to an angular dart project, running pub build but Running pub build:pub.exe build ----- Unhandled exception: ProcessException: The system cannot find the file specified. Command: pub.exe build #0 …
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
0
votes
1 answer

Unable to compile ios app

I am currently trying to test my flutter app on iPhone so I installed intellij, flutter and all other stuff. Everything was going well except that I was unable to build even the demo flutter app on my Mac. In fact, when I run $ flutter create…
Litekangel
  • 51
  • 1
  • 1
  • 5
0
votes
0 answers

Material Progress Bar for AngularDart

Error: Package material_progress has no versions that match >=1.0.0 <2.0.0 derived from: - your_next_startup depends on version ^1.0.0 app_component.html `
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
0
votes
0 answers

Material toolbar for AngularDart

Material toolbar for Angular2. Error: [Error from TemplateCompiler on my_app|lib/app_header/app_header.ng_meta.json]: Could not find Directive/Pipe entry for name: MaterialToolbarComponent . Please be aware that Dart transformers have limited…
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
0
votes
1 answer

Dart wrapper library for the new Firebase version ^4.0.0 error

Dart wrapper library for the new Firebase. I have updated the firebase dependency in my AngularDart project from version ^3.0.0 to ^4.0.0, but it's showing an error: Undefined class'fb.AuthEvent'.` firebase_service.dart import 'dart:async'; …
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
0
votes
1 answer

Issue in importing Polymer dependencies with AngularDart

Resolving dependencies... Package polymer has no versions that match >=1.0.0 <2.0.0 derived from: my-app depends on version ^1.0.0 Process finished with exit code 1
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
0
votes
1 answer

How to transpile a Dart lib to a JavaScript one?

If I develop a Dart library, is there an idiom to transpile the Dart library to a JavaScript one? Assume the Dart library mainly exports two things: a class and a function. On JavaScript side, a JavaScript class/object and a function are…
象嘉道
  • 3,657
  • 5
  • 33
  • 49
0
votes
1 answer

pub get not generating pubspec.lock file

I have a new 2016 MacBook Pro 13-inch, and am trying to get dart and dartium up and running for work. However, when I run pub get in the directory with pubspec.yaml, I do not get a pubspec.lock file, or anything else for that matter. The packages…
jalomas7
  • 382
  • 4
  • 5
0
votes
1 answer

pub get to install non-dart dependancies similar to NPM, pip, etc?

When looking at the pub spec format, i was curious if I can install other packages with pub get. My goal is to either install Ruby or some other tools. Even if i have command line access I could run python scripts or similar to get the code. How…
Fallenreaper
  • 10,222
  • 12
  • 66
  • 129
0
votes
1 answer

Error using library which uses DartSON

I built a simple Dart library to wrap the Mastodon (social platform) API - (source at https://github.com/mykdavies/Mastodon). I can use the library locally in another project by adding the appropriate dependency to its pubspec.yaml: dependencies: …
Michael Davies
  • 1,542
  • 1
  • 12
  • 19
0
votes
0 answers

Custom archetypes for AngularJS (Dart)

Is there something like Maven Archetypes for AngularJS (Dart)? Update: I looked into Stagehand (as mentioned by Günter Zöchbauer), but it only supports standard templates. Unfortunately, I can't create my own templates.
SepDev
  • 153
  • 11
0
votes
1 answer

Could not find a file named "pubspec.yaml" in "/home/vagrant/.pub-cache/hosted/pub.dartlang.org/protobuf-0.5.3"

I'm trying to build a Dart project from inside a Vagrant VM. The project was actually created from my host machine using IntelliJ, but I would like that whoever uses the Vagrant VM is of course able to build the project (and in general do everything…
nbro
  • 15,395
  • 32
  • 113
  • 196
0
votes
1 answer

DirectiveProcessor failed with errors on files in PaxHeader directory on Windows

I have an application that is part Polymer Dart and part AngularDart 2, and I'm getting a large string of errors when I attempt to do a pub get. The errors I'm getting look like this: [DirectiveProcessor]: Failed with 27 errors Error 1: line 1,…
Darryl Faint
  • 125
  • 1
  • 1
  • 6