{"id":18112,"library":"angulate2-scalajs-bundler","title":"angulate2-scalajs-bundler","description":"A webpack plugin that simplifies bundling scalajs projects using angulate2 (Angular 2 for Scala.js) with the scalajs-bundler. This package (v1.0.3, last release unknown) automates configuration of webpack to include required Angular 2 dependencies (e.g., @angular/core, rxjs, zone.js) and outputs the bundled application into a dist folder. It is a thin integration layer between scalajs-bundler and angulate2, requiring manual setup of sbt and webpack config files. Alternatives exist like manual webpack config or newer Scala.js bundling approaches.","status":"abandoned","version":"1.0.3","language":"javascript","source_language":"en","source_url":"https://github.com/Cedware/angulate2-scalajs-bundler","tags":["javascript","scalajs","angular2","angular","angulate","angulate2","scalajs-bundler","webpack"],"install":[{"cmd":"npm install angulate2-scalajs-bundler","lang":"bash","label":"npm"},{"cmd":"yarn add angulate2-scalajs-bundler","lang":"bash","label":"yarn"},{"cmd":"pnpm add angulate2-scalajs-bundler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is only usable as a CommonJS module in webpack.config.js; no ESM or TypeScript typings provided.","wrong":"import angulate2ScalaJsBundler from 'angulate2-scalajs-bundler';","symbol":"angulate2ScalaJsBundler","correct":"const angulate2ScalaJsBundler = require('angulate2-scalajs-bundler');"}],"quickstart":{"code":"// In webpack.config.js\nconst angulate2ScalaJsBundler = require('angulate2-scalajs-bundler');\n// Assume scalajs.webpack.config is generated by scalajs-bundler\nmodule.exports = require('./scalajs.webpack.config');\nmodule.exports.context = __dirname;\n// Apply the bundler plugin for your sbt project name\nangulate2ScalaJsBundler.apply('your-sbt-project-name', module);\n// Then add this to build.sbt:\n/*\nnpmDependencies in Compile += \"@angular/common\" -> \"~2.4.0\"\nnpmDependencies in Compile += \"@angular/core\" -> \"~2.4.0\"\nnpmDevDependencies in Compile += \"angulate2-scalajs-bundler\" -> \"1.0.3\"\nwebpackConfigFile in fastOptJS := Some(baseDirectory.value / \"webpack.config.js\")\n*/\n// Run: fastOptJS::webpack","lang":"javascript","description":"Configures webpack with scalajs-bundler and angulate2-scalajs-bundler plugin for an Angular 2 Scala.js project."},"warnings":[{"fix":"Migrate to Scala.js bundler with manual webpack config for newer Angular versions or use a different Scala.js Angular binding.","message":"Package is unmaintained and uses outdated Angular 2 (v2.4.0) and rxjs v5; not compatible with Angular 4+ or newer Scala.js versions.","severity":"breaking","affected_versions":"<=1.0.3"},{"fix":"Update to Angular 6+ and rxjs 6+ with corresponding Scala.js bindings, but this package is unlikely to work.","message":"Angular 2 has been superseded by Angular 4+, and rxjs v5 is deprecated; the dependencies in the README are outdated.","severity":"deprecated","affected_versions":"<=1.0.3"},{"fix":"Follow the exact order: require config, set context, then apply plugin.","message":"The plugin must be applied after requiring scalajs.webpack.config; order of operations in webpack.config.js matters.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Verify sbt project name (case-sensitive) in build.sbt and use the same string in apply().","message":"The project name argument to apply() must match the sbt project name exactly; mismatch causes bundling failure.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install angulate2-scalajs-bundler --save-dev' or ensure it's added to npmDevDependencies in build.sbt and scalajs-bundler runs npm install.","cause":"Package not installed or not listed in npmDevDependencies; webpack cannot find the module.","error":"Module not found: Error: Cannot resolve module 'angulate2-scalajs-bundler'"},{"fix":"Use: const angulate2ScalaJsBundler = require('angulate2-scalajs-bundler'); (not import).","cause":"Incorrect import or the variable is undefined; possibly wrong require statement.","error":"Error: angulate2ScalaJsBundler.apply is not a function"},{"fix":"Reinstall the package: 'npm install angulate2-scalajs-bundler@1.0.3 --save-dev' and check node_modules exists.","cause":"The required module returned undefined; maybe package is not installed correctly or version mismatch.","error":"TypeError: Cannot read property 'apply' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}