Skip to content

Electron program crashes when trying to import Google Cloud Speech to Text #10511

@avi12

Description

@avi12

Version

2.6.10

Steps to reproduce

yarn global add @vue/cli
vue create test
cd test
vue add electron-builder (choose the latest)
yarn add @google-cloud/speech

src\background.js:

import speech from "@google-cloud/speech";
yarn electron:serve

Then, crash

What is expected?

The application should run normally

What is actually happening?

App threw an error during load
Error: error reading first path in the walk C:\Repositories\protos
Error: ENOENT: no such file or directory, lstat 'C:\Repositories\protos'

(Note that the root directory is in C:\Repositories\test)


I need to be able to import speech specifically in the background.js, and not, say, in App.vue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions