Giter Site home page Giter Site logo

Comments (4)

jszuminski avatar jszuminski commented on June 26, 2024 1

Could you please remove the .cache directory so that all the scripts from the config.js are refetched?

It seems to solve the problem for me. Please try this out and let me know if it does not work for you - I will investigate this further.

from node-export-server.

dancojocar avatar dancojocar commented on June 26, 2024 1

That was the issue, it's working now. Thanks!

from node-export-server.

jszuminski avatar jszuminski commented on June 26, 2024

Fixed via #444.

Closing as this will be a part of the next release.

from node-export-server.

dancojocar avatar dancojocar commented on June 26, 2024

Just performed a checkout of the stable branch that includes this fix, but I'm still encountering the initial error. Upon inspecting the configuration, I noticed that both moment-timezone.js and moment.js scripts are included. However, during page evaluation, the error persists:

TypeError: m.tz is not a function
    at evaluate (evaluate at setAsConfig (file:///opt/dechpc/thirdparty/node-export-server/lib/export.js:100:14), <anonymous>:0:28)
    at ExecutionContext.#evaluate (file:///opt/dechpc/thirdparty/node-export-server/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js:226:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ExecutionContext.evaluate (file:///opt/dechpc/thirdparty/node-export-server/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js:123:16)
    at async IsolatedWorld.evaluate (file:///opt/dechpc/thirdparty/node-export-server/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js:126:16)
    at async CdpFrame.evaluate (file:///opt/dechpc/thirdparty/node-export-server/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js:367:20)
    at async CdpPage.evaluate (file:///opt/dechpc/thirdparty/node-export-server/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js:868:20)
    at async setAsConfig (file:///opt/dechpc/thirdparty/node-export-server/lib/export.js:100:3)
    at async default (file:///opt/dechpc/thirdparty/node-export-server/lib/export.js:223:9)
    at async postWork (file:///opt/dechpc/thirdparty/node-export-server/lib/pool.js:334:20)

from node-export-server.

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.