Skip to content

The Issues after upgrading @angular/core to version 2.3.0 #77

@yywf77

Description

@yywf77

When "@angular/core" is updated to "~20.3.0", InjectFlags has been deprecated. I tried commenting out the InjectFlags-related content in angular-three.mjs, and the program ran, but the gizmo no longer appeared in its own view and instead appeared in the main view. What could be causing this.

angular-three.mjs

import { /**InjectFlags,*/ } from '@angular/core';

get(token, notFoundValue, flags /** = InjectFlags.Default */) {
    const options = {};
    if (typeof flags === 'object') {
        Object.assign(options, flags);
    }
    else {
        Object.assign(options, {
            optional: !!(flags /** & InjectFlags.Optional*/),
            host: !!(flags /** & InjectFlags.Host*/),
            self: !!(flags /** & InjectFlags.Self*/),
            skipSelf: !!(flags /** & InjectFlags.SkipSelf*/),
        });
    }
    if (token === RendererFactory2) {
        return this.ngtEnvInjector.get(token, notFoundValue, options);
    }
    return this.routeEnvInjector.get(token, notFoundValue, options);
}

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