Skip to content

SSR + i18n ENOENT: no such file or directory, rename index.html -> index.original.html #2765

Closed
@juliocardosoventura

Description

@juliocardosoventura

Version info

Angular:
^11.2.3
Firebase:
^7.0 || ^8.0
AngularFire:
^6.1.4
Other (e.g. Ionic/Cordova, Node, browser, operating system):

How to reproduce these conditions

Failing test unit, Stackblitz demonstrating the problem

Steps to set up and reproduce

Sample data and security rules

Debug output

** Errors in the JavaScript console **

ENOENT: no such file or directory, rename 'dist/my-app/dist/my-app/browser/index.html' -> 'dist/my-app/dist/my-app/browser/index.original.html'

** Output from firebase.database().enableLogging(true); **

** Screenshots **

Screen Shot 2021-02-27 at 1 32 32 PM

Expected behavior

this is the line in schematics/deploy/actions.js / fsHost.renameSync(path_1.join(newClientPath, 'index.html'), path_1.join(newClientPath, 'index.original.html')); get path from side firebase.json hosting.public or another config property received from the buildTarget because when the dist/browser have another path the action.js fail.

Actual behavior

ENOENT: no such file or directory, rename 'dist/my-app/dist/my-app/browser/index.html' -> 'dist/my-app/dist/my-app/browser/index.original.html'

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