Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nestjs): grpc reflection #346

Merged
merged 2 commits into from
Jan 24, 2025
Merged

fix(nestjs): grpc reflection #346

merged 2 commits into from
Jan 24, 2025

Conversation

Amiditin
Copy link
Member

Исправлены ошибки:

Object.defineProperty(exports, '__esModule', { value: true })
                      ^
ReferenceError: exports is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/amiditin/React/first-food-backend/ingredients/entrypoints/service/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
import { FileDescriptorProto } from 'google-protobuf/google/protobuf/descriptor_pb.js';
         ^^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'FileDescriptorProto' not found. The requested module 'google-protobuf/google/protobuf/descriptor_pb.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'google-protobuf/google/protobuf/descriptor_pb.js';
const { FileDescriptorProto } = pkg;

@Amiditin Amiditin added the bug Something isn't working label Jan 24, 2025
@Amiditin Amiditin requested a review from Nelfimov January 24, 2025 13:40
@Amiditin Amiditin self-assigned this Jan 24, 2025
@Nelfimov Nelfimov merged commit 0a06d33 into master Jan 24, 2025
2 of 6 checks passed
@Nelfimov Nelfimov deleted the fix/nestjs-grpc-reflection branch January 24, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants