Im importing this json list of color names but when I build it gives me an error - vite

Im using vite, and importing a JSON of color names from this external package. Its working great in dev but throws me an error about missing default when I build. I dont really understand the issue. How do I solve this?
Link to package
Screenshots of error and JSON:

Related

Some of megasparkDiff libraries are not importing

I have cloned the MegaSparkDiff project from GitHub and just wanted to try it out. I use IntelliJ IDE, the project has sample examples and different libraries. Unfortunately, some libraries are not getting imported
I have tried to reload maven, deleted this project, and re-cloned again, but I am getting the same problem, which these libraries/classes are not getting imported :
import org.finra.msd.sparkcompare.SparkCompare;import org.finra.msd.sparkfactory.SparkFactory;
import org.finra.msd.containers.AppleTable;import org.finra.msd.containers.DiffResult;
so, how can I resolve this issue?

Expected Identifier Error when trying to run React App

I used to practice React on an online compiler named Codesandbox; And recently I tried going on a local environment (VS code). I have run my simple react code on it and it compiled well on browser BUT I can't get rid of this 'Identifier Expected' error on my console; It refuse to even let beautify does it's job :/
Here is the screenshot of my environment... I would appreciate it if someone can help me with it...
Code and browser Screenshot

Validating gltf/glb files on nodejs using babylonjs

I'm trying to validate a gltf/glb for some errors in the model on server side using babylon.js. I'm using this package .I found this documentation on babylonjs website about gltf validation but couldn't find equivalent function/classes on the npm package that i am using right now.
Any help if someone has experience on the babylonJs package.

How to know what to use for fabricjs custom build

Since fabric js doesn't support tree-shaking via es6 modules for bundle size reduction i tried to do a custom build of fabricjs via website (http://fabricjs.com/build/) and via command line build and can't figure out which modules I need as I keep getting errors. I use
node build.js modules=text,circle,image,rect,line,image_filters
since to my understanding I dont use anything else. Then I got an error that sort of indicated I would need to import animation module too - even though I don't use animations from my pov. I did that an indeed the error disappeared and now I get this.drawSelectionBackground is not a function and have no clue to which package it belongs so I wonder hot to figure that out - or do I really have to just go for trial and error?
Figured it out it's the interaction module that I need to import even though I dont use interactions...
Pretty weird...

Angular AOT compilation fails with npm package

I am a complete newbee to web development, and now I am facing a problem that I do not know how to deal with.
I am using the npm package named #uniprank/ngx-file-uploader (https://www.npmjs.com/package/#uniprank/ngx-file-uploader) in my web application, which is developed in Typescript with Angular 4. When compiling it with JIT compilation it works with no problems. However, now I would like to turn my application to production mode, so I tried AOT compilation. When I try to compile my application with the Angular compiler, as it is shown here: https://angular.io/guide/aot-compiler. The message shown is the following:
Unexpected value 'undefined' exported by the module 'FileUploaderModule in /node_modules/#uniprank/ngx-file-uploader/typings/index.d.ts'
I am completely lost at this point. Although I have been looking around in the web, I cannot figure out what means that message and how to fix it.
Any ideas to solve this problem will be appreciated. Thanks.

Resources