question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dependency problem with angular4 [4.0.0-beta]

See original GitHub issue

[v4.0.0-alpha.6] works fine but in beta have errors

$ng serve

ERROR in multi script-loader!./node_modules/jquery/dist/jquery.js script-loader!./node_modules/tether/dist/js/tether.js script-loader!./node_modules/bootstrap/dist/js/bootstrap.js
Module not found: Error: Can't resolve './node_modules/tether/dist/js/tether.js' in './node_modules/@angular/cli/models/webpack-configs'
resolve './node_modules/tether/dist/js/tether.js' in './node_modules/@angular/cli/models/webpack-configs'
  using description file: ./node_modules/@angular/cli/package.json (relative path: ./models/webpack-configs)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: ./node_modules/@angular/cli/package.json (relative path: ./models/webpack-configs)
    using description file: ./package.json (relative path: ./node_modules/tether/dist/js/tether.js)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        ./node_modules/tether/dist/js/tether.js doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        ./node_modules/tether/dist/js/tether.js.ts doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        ./node_modules/tether/dist/js/tether.js.js doesn't exist
      as directory
        ./node_modules/tether/dist/js/tether.js doesn't exist
[./node_modules/tether/dist/js/tether.js]
[./node_modules/tether/dist/js/tether.js.ts]
[./node_modules/tether/dist/js/tether.js.js]
[./node_modules/tether/dist/js/tether.js]
 @ multi script-loader!./node_modules/jquery/dist/jquery.js script-loader!./node_modules/tether/dist/js/tether.js script-loader!./node_modules/bootstrap/dist/js/bootstrap.js

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ThomasPecommented, Aug 11, 2017

seems it has been replaced with popper.js which has to be added to the .angular-cli.json manually, right?

1reaction
XhmikosRcommented, Aug 11, 2017

Tether is no longer a dependency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular update from 8 to 13 peer dependency problem
I was using v16.9 and install node v14.19 solve my problem. ... @angular/flex-layout@"^13.0.0-beta.38" from the root project npm ERR!
Read more >
@ng-bootstrap/ng-bootstrap - npm
Welcome to the Angular version of the Angular UI Bootstrap library. This library is being built from scratch by the ui-bootstrap team. We...
Read more >
Angular 5 Tutorial: Guide to Your First Angular 5 App - Toptal
Build a notes application from scratch for your first Angular 5 app. Learn Angular CLI, use RxJS, ... [3/4] Linking dependencies... warning "@angular/cli ......
Read more >
angular/flex-layout@13.0.0-beta.36 - You.com
Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially...
Read more >
Unable to resolve dependency tree error in Angular while ...
It's a dependency conflict (incorrect and potentially broken dependency) error, so run the command with --force or --legacy-peer-deps flag. npm ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found