Git Product home page Git Product logo

Comments (11)

harpal-hp avatar harpal-hp commented on May 20, 2024

Issue is with only server-less framework node JS lambda project, working fine with plain node JS project

from camaro.

tuananh avatar tuananh commented on May 20, 2024

Can you create a minimal repro repo so that I can clone and check the error? Also, what command to use to reproduce it.

from camaro.

tuananh avatar tuananh commented on May 20, 2024

It seems to be problem with serverless framework where it tries to parse wasm file. The way I can see is either config serverless to not to do that. Or I can fix it at camaro project where I remove wasm file and place its content directly in js file.

Just my hypothesis.

from camaro.

tuananh avatar tuananh commented on May 20, 2024

@harpal-hp this looks similar with this issue. update the webpack config to ignore wasm.

serverless-heaven/serverless-webpack#386

from camaro.

harpal-hp avatar harpal-hp commented on May 20, 2024

Ok, i will try to do that. i have created the repo if you want to replicate the issue -

https://github.com/harpal-sgh/serverless-camaro

Run : npm i then sls offline, you might have to install serverless if not installed already

from camaro.

harpal-hp avatar harpal-hp commented on May 20, 2024

I tried ignoring .wasm file, but i am losing serverless-bundle capabilities. i have to bundle it using web-pack.
If you can do something in Camaro project, it will be great help for everyone, who want to use Camaro library with server-less framework.

Thanks

from camaro.

tuananh avatar tuananh commented on May 20, 2024

I tried ignoring .wasm file, but i am losing serverless-bundle capabilities. i have to bundle it using web-pack.
If you can do something in Camaro project, it will be great help for everyone, who want to use Camaro library with server-less framework.

Thanks

it's possible. lemme take a look into it.

from camaro.

harpal-hp avatar harpal-hp commented on May 20, 2024

@tuananh do you know how long it will take to fix this?

from camaro.

tuananh avatar tuananh commented on May 20, 2024

@harpal-hp i'm working on it. thought it would be straight forward but somehow, it still doesn't work yet :D. maybe another week or two, depends on how i can manage my time.

from camaro.

tuananh avatar tuananh commented on May 20, 2024

Recently, I chose to use worker_threads for performance gain so web support is dropped.

i'm looking for way to re-add it in the future but I don't know how yet. So this won't be fixed anytime soon.

from camaro.

jonsherrard avatar jonsherrard commented on May 20, 2024

For googlers:

Just a not that worker_threads means this won't work on platforms that don't support Node 12. For example Google Cloud Functions.

(Check node -v locally if you're having working errors)

from camaro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.