Coder Social home page Coder Social logo

Comments (7)

4ppsec avatar 4ppsec commented on August 23, 2024

are you using master?

from dvsa.

lucadidomenico avatar lucadidomenico commented on August 23, 2024

Yes, I'm using master.

from dvsa.

4ppsec avatar 4ppsec commented on August 23, 2024

Can you please paste the function's logs from CloudWatch logs?

from dvsa.

lucadidomenico avatar lucadidomenico commented on August 23, 2024

{
"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module 'node-serialize'\nRequire stack:\n- /var/task/backend/src/functions/order-api/order-manager-js.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
"trace": [
"Runtime.ImportModuleError: Error: Cannot find module 'node-serialize'",
"Require stack:",
"- /var/task/backend/src/functions/order-api/order-manager-js.js",
"- /var/runtime/UserFunction.js",
"- /var/runtime/index.js",
" at _loadUserApp (/var/runtime/UserFunction.js: 100:13)",
" at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
" at Object. (/var/runtime/index.js:43:30)",
" at Module._compile (internal/modules/cjs/loader.js:999:30)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)",
" at Module.load (internal/modules/cjs/loader.js:863:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:708:14)",
" at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)",
" at internal/main/run_main_module.js:17:47"
]
}

from dvsa.

lucadidomenico avatar lucadidomenico commented on August 23, 2024

Another thing is that i had to change the command:

webpack -p --env production --mode production

inside client/package.json to

webpack -p --mode production

because the command npm run-script client:build does not work in my case otherwhise.

from dvsa.

4ppsec avatar 4ppsec commented on August 23, 2024

can you please re-try now

from dvsa.

4ppsec avatar 4ppsec commented on August 23, 2024

I know its quite late. The problem was that the node-serialize was not included in the ORDER-MANGER package.
I've updated the version. you can take a look now.

from dvsa.

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.