Giter VIP home page Giter VIP logo

Comments (7)

shamsmosowi avatar shamsmosowi commented on May 25, 2024

Hi @frank-bee can you share your table schema, i can take look

from rowy.

frank-bee avatar frank-bee commented on May 25, 2024

oh nice!
this is the table
https://rowy.app/p/bedstories-8ebd2/table/stories

from rowy.

frank-bee avatar frank-bee commented on May 25, 2024

the column I changed was "Stories". but I think I reverted the changes and still get the error.
maybe one of my imported packages changed.
I use chatgpt API and a text2speach api from 11labs ( in some other column)

thanks for helping me @shamsmosowi

from rowy.

frank-bee avatar frank-bee commented on May 25, 2024

@shamsmosowi
it seems to be in the azure lib in the derivative in the url column:

stderr: /home/node/app/build/functionBuilder/builds/1699084535870/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/microsoft.cognitiveservices.speech.sdk.js:3
import { ConsoleLoggingListener } from "./src/common.browser/Exports";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1178:20)
    at Module._compile (node:internal/modules/cjs/loader:1220:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/home/node/app/build/functionBuilder/builds/1699084535870/src/derivatives/url.js:100:13)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
error Command failed with exit code 1.

from rowy.

frank-bee avatar frank-bee commented on May 25, 2024

I moved the import statement ( not the one in the error message but the one were I import the surrounding package) inside a function, no it works

from rowy.

frank-bee avatar frank-bee commented on May 25, 2024

I tested it again: issue is still there, now during runtime, not deplyoment.

from rowy.

frank-bee avatar frank-bee commented on May 25, 2024

@shamsmosowi this issue and #1471 both had todo with this azure package 'microsoft-cognitiveservices-speech-sdk'.
When importing this ( with require) , this messes up my complete rowy function ( of even the other functions of other tables?).
below some sample code how you could test this.

What I do to temp. fix this, I fixed the package.json, downgrading to "microsoft-cognitiveservices-speech-sdk": "1.32.0",
How can I do this with rowy?

sample code for reproducing this issue

function synthesizeSpeech(logging) {
    var sdk = require("microsoft-cognitiveservices-speech-sdk");

    const speechConfig = sdk.SpeechConfig.fromSubscription("..", "eastus");
    const speechSynthesizer = new sdk.SpeechSynthesizer(speechConfig);

    speechSynthesizer.speakTextAsync(
        "I'm excited to try text to speech",
        result => {
          logging.log("ok");
            speechSynthesizer.close();
            return result.audioData;
        },
        error => {
            logging.log(error);
            speechSynthesizer.close();
        });
}

from rowy.

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.