I am trying to add volume-leaflet via helium to Apache zeppelin (0.7) as per these instructions. I get this error when trying to enable it:
./~/leaflet/dist/leaflet.css
Module parse failed: /usr/hdp/2.6.0.3-8/zeppelin/local-repo/vis/node_modules/leaflet/dist/leaflet.css Unexpected token (3:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (3:0)
at Parser.pp$4.raise (/usr/hdp/2.6.0.3-8/zeppelin/local-repo/vis/node_modules/acorn/dist/acorn.js:2221:15)
at Parser.pp.unexpected (/usr/hdp/2.6.0.3-8/zeppelin/local-repo/vis/node_modules/acorn/dist/acorn.js:603:10)
at Parser.pp$3.parseExprAtom (/usr/hdp/2.6.0.3-8/zeppelin/local- ... [some removed]... core/lib/NormalModuleMixin.js:259:5
at Storage.finished (/usr/hdp/2.6.0.3-8/zeppelin/local-repo/vis/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
at /usr/hdp/2.6.0.3-8/zeppelin/local-repo/vis/node_modules/graceful-fs/graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)
# ./~/volume-leaflet/index.js 23:0-35
Can anyone please point me in the right direction?
Related
I am working on a react project and I'm getting an error from babel that I'm not sure how to resolve. Here is the error:
ERROR in ./src/MainLandingPage.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: /Users/MyName/ReactProject/react-project/src/MainLandingPage.js: Cannot find module 'twin.macro' from '/Users/MyName/ReactProject/react-project/src'
at Function.resolveSync [as sync] (/Users/MyName/ReactProject/react-project/node_modules/resolve/lib/sync.js:111:15)
at nodeResolvePath (/Users/MyName/ReactProject/react-project/node_modules/babel-plugin-macros/dist/index.js:62:18)
at applyMacros (/Users/MyName/ReactProject/react-project/node_modules/babel-plugin-macros/dist/index.js:203:23)
at ImportDeclaration (/Users/MyName/ReactProject/react-project/node_modules/babel-plugin-macros/dist/index.js:110:28)
at NodePath._call (/Users/MyName/ReactProject/react-project/node_modules/#babel/traverse/lib/path/context.js:53:20)
at NodePath.call (/Users/MyName/ReactProject/react-project/node_modules/#babel/traverse/lib/path/context.js:40:17)
at NodePath.visit (/Users/MyName/ReactProject/react-project/node_modules/#babel/traverse/lib/path/context.js:100:31)
at TraversalContext.visitQueue (/Users/MyName/ReactProject/react-project/node_modules/#babel/traverse/lib/context.js:105:16)
at TraversalContext.visitMultiple (/Users/MyName/ReactProject/react-project/node_modules/#babel/traverse/lib/context.js:74:17)
at TraversalContext.visit (/Users/MyName/ReactProject/react-project/node_modules/#babel/traverse/lib/context.js:131:19)
webpack compiled with 1 error
I'm currently having some trouble with an issue that was previously fixed through a build hint some time ago as you can see in the following thread:
https://groups.google.com/forum/#!searchin/codenameone-discussions/parse4cn1%7Csort:date/codenameone-discussions/4xipU9Sy5rY/IbX1YMmGBQAJ
I'm still keeping the build hint android.excludeBolts=true as well as the facebook.appId build hint set to my app id, but it now fails with the following error:
2019-03-19 00:35:44.832 9571-9571/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.guarumo.ego, PID: 9571
java.lang.NoClassDefFoundError: Failed resolution of: Lbolts/AppLinks;
at com.facebook.appevents.internal.SourceApplicationInfo$Factory.create(SourceApplicationInfo.java:131)
at com.facebook.appevents.internal.ActivityLifecycleTracker.onActivityCreated(ActivityLifecycleTracker.java:155)
at com.facebook.appevents.internal.ActivityLifecycleTracker$1.onActivityCreated(ActivityLifecycleTracker.java:101)
at android.app.Application.dispatchActivityCreated(Application.java:208)
at android.app.Activity.onCreate(Activity.java:1110)
at com.codename1.impl.android.CodenameOneActivity.onCreate(CodenameOneActivity.java:306)
at com.guarumo.ego.EgoStub.onCreate(EgoStub.java:53)
at android.app.Activity.performCreate(Activity.java:7383)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3256)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
at android.app.ActivityThread.-wrap12(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.ClassNotFoundException: Didn't find class "bolts.AppLinks" on path: DexPathList[[zip file "/data/app/com.guarumo.ego-nsZJW8Y8XXNjxF5pwA3RMQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.guarumo.ego-nsZJW8Y8XXNjxF5pwA3RMQ==/lib/arm64, /system/lib64, /vendor/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.facebook.appevents.internal.SourceApplicationInfo$Factory.create(SourceApplicationInfo.java:131)
at com.facebook.appevents.internal.ActivityLifecycleTracker.onActivityCreated(ActivityLifecycleTracker.java:155)
at com.facebook.appevents.internal.ActivityLifecycleTracker$1.onActivityCreated(ActivityLifecycleTracker.java:101)
at android.app.Application.dispatchActivityCreated(Application.java:208)
at android.app.Activity.onCreate(Activity.java:1110)
at com.codename1.impl.android.CodenameOneActivity.onCreate(CodenameOneActivity.java:306)
at com.guarumo.ego.EgoStub.onCreate(EgoStub.java:53)
at android.app.Activity.performCreate(Activity.java:7383)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3256)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
at android.app.ActivityThread.-wrap12(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
On the other hand, if I set the android.excludeBolts build hint to false I get the problem presented on the previously mentioned thread:
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/AggregateException;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/AndroidExecutors;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/AndroidExecutors$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/AndroidExecutors$UIThreadExecutor;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/BoltsExecutors;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/BoltsExecutors$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/BoltsExecutors$ImmediateExecutor;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/CancellationToken;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lbolts/CancellationTokenRegistration;
Dex: Error converting bytecode to dex:
Cause: java.lang.RuntimeException: Translation has been interrupted
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:615)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:313)
at com.android.dx.command.dexer.Main.runDx(Main.java:291)
at com.android.dx.command.dexer.Main.main(Main.java:247)
at com.android.dx.command.Main.main(Main.java:94)
Caused by: java.lang.InterruptedException: Too many errors
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)
... 4 more
:transformClassesWithDexForRelease FAILED
:transformClassesWithDexForRelease (Thread[Daemon worker,5,main]) completed. Took 22.043 secs.
I think this might be being caused by the change to a newer version of the Facebook SDK, but couldn't confirm it. Could you please help me out with this problem?
Thanks in advance.
I'm guessing this relates to the second answer in this question. This was caused because of this fix. As a temporary workaround you can probably set the SDK to the older/deprecated facebook SDK with the build hint: android.facebookSdkVersion=4.7.0.
To property fix this problem (if that answer is indeed correct) you will need to add parse bolts to the build hints:
android.gradleDep=compile 'com.parse.bolts:bolts-tasks:1.4.0'; compile 'com.parse.bolts:bolts-applinks:1.4.0';
React-native-popover is showing error I found that inside node-module I found gif images are there and also StyleSheetRegistry module not found. Not only this when I am using the asserts images it is giving the same error if I am using the browser link (http://i.imgur.com/vKRaKDX.png) images it is working fine. Could any one suggest me how to fix this issue.
SyntaxError: /home/user/Desktop/stackSideMenu/node_modules/react-native-popover/Screenshots/basic.png: Unexpected character '�' (1:0)
1 | �PNG
| ^
2 |
3 |
4 | IHDR#Ԍ�DgAMA��
�a cHRMz&�����u0�`:�p��Q< pHYs ��YiTXtXML:com.adobe.xmp
at Parser.pp.raise (/home/user/Desktop/stackSideMenu/node_modules/babylon/lib/parser/location.js:22:13)
at Parser.getTokenFromCode (/home/user/Desktop/stackSideMenu/node_modules/babylon/lib/tokenizer/index.js:561:12)
at Parser.readToken (/home/user/Desktop/stackSideMenu/node_modules/babylon/lib/tokenizer/index.js:180:21)
at Parser. (/home/user/Desktop/stackSideMenu/node_modules/babylon/lib/plugins/jsx/index.js:51:20)
at Parser.readToken (/home/user/Desktop/stackSideMenu/node_modules/babylon/lib/plugins/flow.js:170:22)
at Parser.nextToken (/home/user/Desktop/stackSideMenu/node_modules/babylon/lib/tokenizer/index.js:169:21)
at Parser.parse (/home/user/Desktop/stackSideMenu/node_modules/babylon/lib/parser/index.js:128:12)
at parse (/home/user/Desktop/stackSideMenu/node_modules/babylon/lib/index.js:47:47)
at File.parse (/home/user/Desktop/stackSideMenu/node_modules/babel-core/lib/transformation/file/index.js:517:34)
at File.parseCode (/home/user/Desktop/stackSideMenu/node_modules/babel-core/lib/transformation/file/index.js:603:20)
I am using socket and angular.js for comment section in my node.js express project and getting following error.
(node) warning: possible EventEmitter memory leak detected.
11 clear_comments listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at Namespace.addListener (events.js:252:17)
at Server.(anonymous function) [as on] (/home/comeoutloud/public_html/node_modules/socket.io/lib/index.js:369:16)
at Namespace.<anonymous> (/home/comeoutloud/public_html/controllers/usermains.js:1761:10)
at emitOne (events.js:90:13)
at Namespace.emit (events.js:182:7)
at Namespace.emit (/home/comeoutloud/public_html/node_modules/socket.io/lib/namespace.js:206:10)
at /home/comeoutloud/public_html/node_modules/socket.io/lib/namespace.js:174:14
at _combinedTickCallback (node.js:370:9)
at process._tickCallback (node.js:401:11)
I'm trying to see whether a cookie key is set:
if ($cookieStore.get('user')){
$scope.session.user = $cookieStore.get('user');
console.log($scope.session.user);
}
An I get the error on the first line. This looks simple, so what am I doing wrong?
Full error:
SyntaxError: Unexpected token u
at Object.parse (native)
at Object.fromJson (http://localhost:8000/vendor/angular/angular.js:1139:14)
at Object.get (http://localhost:8000/vendor/angular/angular-cookies/angular-cookies.js:172:34)
at new <anonymous> (http://localhost:8000/js/main.js:44:33)
at invoke (http://localhost:8000/vendor/angular/angular.js:3966:17)
at Object.instantiate (http://localhost:8000/vendor/angular/angular.js:3977:23)
at http://localhost:8000/vendor/angular/angular.js:7281:28
at http://localhost:8000/vendor/angular/angular.js:6670:34
at forEach (http://localhost:8000/vendor/angular/angular.js:332:20)
at nodeLinkFn (http://localhost:8000/vendor/angular/angular.js:6657:11)
This was asked a year ago, but I just got the same error today.
All I did to resolve this was basically to clear my browser's cookies, and the error went away.