Comments (11)
Issue is with only server-less framework node JS lambda project, working fine with plain node JS project
from camaro.
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.
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.
@harpal-hp this looks similar with this issue. update the webpack config to ignore wasm.
serverless-heaven/serverless-webpack#386
from camaro.
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.
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.
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.
@tuananh do you know how long it will take to fix this?
from camaro.
@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.
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.
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)
- Add ready to typing file HOT 2
- Module worker.js not found when using Typescript HOT 2
- Suggestion: Add `engines` field to package.json HOT 1
- Question: Template extraction HOT 1
- Undefined or missing elements parse as empty strings HOT 9
- Warning: (node:23080) ExperimentalWarning: The ESM module loader is experimental. HOT 1
- No result from transform [Help]
- Memory allocation error HOT 14
- Question: custom template HOT 2
- Dependencies not found (6.0.2) HOT 7
- The V8 platform used by this instance of Node does not support creating Workers HOT 15
- benchmark HOT 5
- Unable to parse input with invalid characters HOT 5
- Use `piscina` only if `worker_threads` module is available
- Latest version very slow on AWS Lambda (node v14) HOT 3
- Template not working when using namespaces HOT 1
- XML with several deep nodes returns [Object] HOT 1
- Question - Nested Template HOT 2
- Sign npm release HOT 1
- Non support for non avx512 cpu flags HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camaro.