mocha test vue template but babel can not analyze `computed:{ ...mapGetters()}` - vue.js

I use macho+chai test vue template, but when template use Vuex like
...mapGetters([
it have a bug that Module build failed (from ./node_modules/babel-loader/lib/index.js):
computed:{
> 18 | ...mapGetters(['website', 'isCustomer'])
| ^
19 | },
i want completed successful

Related

React native/ Uncaught Invariant Violation: __fbBatchedBridgeConfig is not set, cannot invoke native modules

I'm facing this issue since some days
when i compile an web version (npx expo export:web)
i got this
Compiled with warnings
./node_modules/react-native/Libraries/vendor/emitter/_EventEmitter.js:66:10
Attempted import error: './_EmitterSubscription' does not contain a default export (imported as 'EmitterSubscription').
64 | return (this._subscriber.addSubscription(
65 | eventType,
> 66 | new EmitterSubscription(this, this._subscriber, listener, context),
| ^
67 | ): $FlowFixMe);
68 | }
69 |
once compiled when i'm testing it i got this error in console:
browser.js:38 Uncaught Invariant Violation: __fbBatchedBridgeConfig is not set, cannot invoke native modules
also i did npm install in the project folder

After make an npm update the console shows Error: Module not found: Error: Can't resolve 'angular2-moment'

I was trying to install jquery on my Angular project and after write some jquery dependency on package.json doc and type npm update, the console says Error: Module not found: Error: Can't resolve 'angular2-moment'.
Error occurs in the template of component RegisterComponent.
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
× Failed to compile.
✔ Browser application bundle generation complete.
Initial Chunk Files | Names | Raw Size
main.js | main | 83.62 kB |
runtime.js | runtime | 6.51 kB |
4 unchanged chunks
Build at: 2023-01-10T02:39:00.432Z - Hash: 2a1b1b37176d6913 - Time: 536ms
./src/app/app.module.ts:7:0-47 - Error: Module not found: Error: Can't resolve 'angular2-moment' in 'C:\Users\xxxxxx\Desktop\Proyectos IT\registro_cintas\client\src\app'
Error: src/app/app.component.html:6:34 - error NG8002: Can't bind to 'routerLink' since it isn't a known property of 'a'.
6 <a class="link-home" [routerLink]="['/home']">
continue...
~~~~~~~~~~~~~~~~~~~~~~~~
I tryed installing ngx-moment, angular2-moment again or uninstalling this last one algo I erase the entire folder and made a git clone from the last working commit but nothing, I think the angular2-moment it's not compatible with my Angular version but I don't know what to do.

npm - gulp-sass no longer has a default Sass compiler; please set one yourself

Keep getting this error when trying to build templates
[09:21:08] Requiring external module babel-register
[09:21:19] Using gulpfile ~/GIT/Newsletters/gulpfile.babel.js
[09:21:19] Starting 'build'...
[09:21:19] Starting 'clean'...
[09:21:19] Finished 'clean' after 5.98 ms
[09:21:19] Starting 'pages'...
[09:21:20] Finished 'pages' after 1.96 s
[09:21:20] Starting 'sass'...
Error in plugin "gulp-sass"
Message:
gulp-sass no longer has a default Sass compiler; please set one yourself.
Both the "sass" and "node-sass" packages are permitted.
For example, in your gulpfile:
const sass = require('gulp-sass')(require('sass'));
When I then add const sass = require('gulp-sass')(require('sass')); in my gulpfile.js
It gives this error
[09:41:01] Requiring external module babel-register
{ TypeError: /Users/lde4k1v/GIT/Newsletters/gulpfile.babel.js: Duplicate declaration "sass"
76 |
77 | // Compile Sass into CSS
> 78 | function sass() {
| ^
79 | return gulp.src('src/assets/scss/app.scss')
80 | .pipe($.if(!PRODUCTION, $.sourcemaps.init()))
81 | .pipe($.sass({
Here is my full gulpfile.babel.js
Can someone help me out :( already searched quite some time on it and can't find seem to fix it sadly

fbBatchedBridgeConfig is not set

I'm having an error while running yarn test on react native mobile application.
Test suite failed to run
Invariant Violation: __fbBatchedBridgeConfig is not set, cannot invoke native modules
2 | // import console = require('console');
3 |
> 4 | if (!NativeModules.DeviceMotionModule) {
| ^
5 | throw new Error('Native modules for sensors not available. Did react-native link run successfully?')
6 | }
7 |
at invariant (node_modules/invariant/invariant.js:40:15)
at Object.invariant (node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:162:3)
at Object.require [as NativeModules] (node_modules/react-native/Libraries/react-native/react-native-implementation.js:322:12)
at Object.NativeModules (src/NativeModules/SensorsIOS/sensors.js:4:6)
I'm new to testing with jest.
I have a set of costum native modules for IOS and Android in my project (not an npm module).

Errors after installing '#babel/preset-env'

when I was trying to start my npm project I got the following error:
/home/projects/reactive-weather/reactive-weather/app/node_modules/expo/src/Location.js:
Cannot find module '#babel/preset-env' from '/home/projects/reactive-weather/reactive-weather/app'
Surely I need to install this module but after I did, I'm getting this error:
Error: /home/projects/reactive-weather/reactive-weather/app/node_modules/expo/src/Location.js: Unexpected token, expected ";" (9:5)
7 | const LocationEventEmitter = new NativeEventEmitter(NativeModules.ExponentLocation);
8 |
> 9 | type ProviderStatus = {
| ^
10 | locationServicesEnabled: boolean,
11 | gpsAvailable: ?boolean,
12 | networkAvailable: ?boolean,
10:43:44 AM: Failed building JavaScript bundle
Everything was perfectly fine, the last thing I've done before this happened was using git commands like: git stash also I had to perform npm audit fix but I don't think any libs were vulnerable.