Giter VIP home page Giter VIP logo

Comments (7)

spawnia avatar spawnia commented on July 4, 2024

You can configure your bundler to take care of this.

from apollo-link-sentry.

UltraTempest avatar UltraTempest commented on July 4, 2024

Hmmm, we have imported 30 packages from npm into our bundled web code including official sentry packages & we havenโ€™t had to configure our webpack bundler to handle any of them. This seems to be the standard for npm package publication. Would you reconsider?

I donโ€™t think it would be a big ask to implement.

from apollo-link-sentry.

DiederikvandenB avatar DiederikvandenB commented on July 4, 2024

Strange that you find these in your compiled code. What version are you running?

When I run a fresh yarn build, my compiled code doesn't contain these, except for the TS type files:

$ grep -R "const" lib
lib/SentryLink.d.ts:    constructor(options?: SentryLinkOptions);
lib/options.d.ts:    export declare const defaultOptions: {
lib/excludeGraphQLFetch.d.ts:    export declare const excludeGraphQLFetch: BeforeBreadcrumbCallback;
lib/sentry.d.ts:    export declare const DEFAULT_FINGERPRINT = "{{ default }}";
$ grep -R "=>" lib
lib/options.d.ts:    shouldHandleOperation: undefined | ((operation: Operation) => boolean);
lib/options.d.ts:    transform: undefined | ((breadcrumb: GraphQLBreadcrumb, operation: Operation) => Breadcrumb);

from apollo-link-sentry.

UltraTempest avatar UltraTempest commented on July 4, 2024

So when my webpack bundler is running & I omit '.mjs' from resolve.extensions in my webpack config:

 resolve: {
    extensions:  '.js', '.jsx'],
  },

I get this error:

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'BREAK' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'BreakingChangeType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'DEFAULT_DEPRECATION_REASON' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'DangerousChangeType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'DirectiveLocation' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'FieldsOnCorrectTypeRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'FragmentsOnCompositeTypesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLBoolean' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLDeprecatedDirective' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLDirective' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLEnumType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 57:0-91
Can't reexport the named export 'GraphQLError' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLFloat' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLID' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLIncludeDirective' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLInputObjectType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLInt' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLInterfaceType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLList' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLNonNull' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLObjectType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLScalarType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLSkipDirective' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLString' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'GraphQLUnionType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'Kind' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'KnownArgumentNamesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'KnownDirectivesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'KnownFragmentNamesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'KnownTypeNamesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'LoneAnonymousOperationRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'NoFragmentCyclesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'NoUndefinedVariablesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'NoUnusedFragmentsRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'NoUnusedVariablesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'OverlappingFieldsCanBeMergedRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'PossibleFragmentSpreadsRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'ProvidedRequiredArgumentsRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'ScalarLeafsRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'SchemaMetaFieldDef' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'SingleFieldSubscriptionsRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'Source' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'TokenKind' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'TypeInfo' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'TypeKind' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'TypeMetaFieldDef' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'TypeNameMetaFieldDef' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'UniqueArgumentNamesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'UniqueDirectivesPerLocationRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'UniqueFragmentNamesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'UniqueInputFieldNamesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'UniqueOperationNamesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'UniqueVariableNamesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'ValidationContext' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'ValuesOfCorrectTypeRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'VariablesAreInputTypesRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'VariablesInAllowedPositionRule' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export '__Directive' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export '__DirectiveLocation' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export '__EnumValue' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export '__Field' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export '__InputValue' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export '__Schema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export '__Type' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export '__TypeKind' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertAbstractType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertCompositeType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertDirective' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertEnumType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertInputObjectType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertInputType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertInterfaceType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertLeafType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertListType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertNamedType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertNonNullType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertNullableType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertObjectType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertOutputType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertScalarType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertUnionType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'assertValidName' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertValidSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'assertWrappingType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'astFromValue' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'buildASTSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'buildClientSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'buildSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'coerceInputValue' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'coerceValue' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'concatAST' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'createLexer' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 51:0-68
Can't reexport the named export 'createSourceEventStream' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 50:0-122
Can't reexport the named export 'defaultFieldResolver' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 50:0-122
Can't reexport the named export 'defaultTypeResolver' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'doTypesOverlap' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 50:0-122
Can't reexport the named export 'execute' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'extendSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'findBreakingChanges' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'findDangerousChanges' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'findDeprecatedUsages' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 57:0-91
Can't reexport the named export 'formatError' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'getDescription' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 50:0-122
Can't reexport the named export 'getDirectiveValues' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'getIntrospectionQuery' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'getLocation' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'getNamedType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'getNullableType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'getOperationAST' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'getOperationRootType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'getVisitFn' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 27:0-49
Can't reexport the named export 'graphql' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 27:0-49
Can't reexport the named export 'graphqlSync' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'introspectionFromSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'introspectionQuery' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'introspectionTypes' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isAbstractType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isCompositeType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'isDefinitionNode' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isDirective' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isEnumType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'isEqualType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'isExecutableDefinitionNode' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isInputObjectType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isInputType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isInterfaceType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isIntrospectionType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isLeafType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isListType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isNamedType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isNonNullType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isNullableType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isObjectType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isOutputType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isRequiredArgument' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isRequiredInputField' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isScalarType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'isSelectionNode' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isSpecifiedDirective' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isSpecifiedScalarType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'isTypeDefinitionNode' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'isTypeExtensionNode' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'isTypeNode' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'isTypeSubTypeOf' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'isTypeSystemDefinitionNode' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'isTypeSystemExtensionNode' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isUnionType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'isValidJSValue' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'isValidLiteralValue' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'isValidNameError' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'isValueNode' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'isWrappingType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'lexicographicSortSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 57:0-91
Can't reexport the named export 'locatedError' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'parse' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'parseType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'parseValue' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'print' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 57:0-91
Can't reexport the named export 'printError' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'printIntrospectionSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'printLocation' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'printSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'printSourceLocation' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'printType' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 50:0-122
Can't reexport the named export 'responsePathAsArray' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'separateOperations' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'specifiedDirectives' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'specifiedRules' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'specifiedScalarTypes' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'stripIgnoredCharacters' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 51:0-68
Can't reexport the named export 'subscribe' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 57:0-91
Can't reexport the named export 'syntaxError' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'typeFromAST' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 53:0-55:675
Can't reexport the named export 'validate' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 29:0-40:50
Can't reexport the named export 'validateSchema' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'valueFromAST' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 59:0-96:42
Can't reexport the named export 'valueFromASTUntyped' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 25:0-49
Can't reexport the named export 'version' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 25:0-49
Can't reexport the named export 'versionInfo' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'visit' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'visitInParallel' from non EcmaScript module (only default export is available)

ERROR in ./node_modules/graphql/index.mjs 42:0-48:205
Can't reexport the named export 'visitWithTypeInfo' from non EcmaScript module (only default export is available)

So I need to add '.mjs' to resolve.extensions to fix this error but the resulting bundle contains const & arrow functions. Would these errors give a hint to where the issue may lie?

from apollo-link-sentry.

UltraTempest avatar UltraTempest commented on July 4, 2024

Sorry I think I solved it.
Forgot the peer dependency:
"graphql": "^15.4.0",

Thanks for you guys help ๐Ÿ˜…

from apollo-link-sentry.

UltraTempest avatar UltraTempest commented on July 4, 2024

Sorry I need to reopen, the bundled code is still breaking in IE11 due to the unsupported syntax.

from apollo-link-sentry.

DiederikvandenB avatar DiederikvandenB commented on July 4, 2024

I am going to need more information. You mention the bundled code contains const and arrow functions, but I have shown you this is not the case.

the bundled code is still breaking in IE11 due to the unsupported syntax

image

When I bundle the package in a CRA app (all default settings), the compiled code clearly does not contain consts or arrow functions. Please check your webpack config, since it seems an environmental issue.

from apollo-link-sentry.

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.