thlorenz / brace

📔 browserify compatible version of the ace editor.
http://thlorenz.github.io/brace/
MIT License
1.06k stars 304 forks source link

Angular2: Uncaught ReferenceError: ace is not defined #104

Closed sensui7 closed 6 years ago

sensui7 commented 6 years ago

Whenever I run ng test to test the client side (Angular 2 app), I always get the error that ace is not defined:

Uncaught ReferenceError: ace is not defined
    at Object.../../../../brace/mode/c_cpp.js (http://localhost:9876/_karma_webpack_/webpack:/home/steve/Desktop/alias/node_modules/brace/mode/c_cpp.js:1:1)
    at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap 3b61ffb4d1c64454108c:54:1)
    at Object.../../../../../src/app/app.component.ts (http://localhost:9876/_karma_webpack_/webpack:/home/steve/Desktop/alias/src/app/app.component.ts:8:1)
    at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap 3b61ffb4d1c64454108c:54:1)
    at Object.../../../../../src/app/app.component.spec.ts (http://localhost:9876/_karma_webpack_/webpack:/home/steve/Desktop/alias/src/app/app.component.spec.ts:2:1)
    at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap 3b61ffb4d1c64454108c:54:1)
    at webpackContext (http://localhost:9876/_karma_webpack_/webpack:/home/steve/Desktop/alias/src \.spec\.ts$:5:1)
    at Array.map (native)
    at Object.../../../../../src/test.ts (http://localhost:9876/_karma_webpack_/webpack:/home/steve/Desktop/alias/src/test.ts:30:16)
    at __webpack_require__ (http://localhost:9876/_karma_webpack_/webpack:/webpack/bootstrap 3b61ffb4d1c64454108c:54:1)