Giter Site home page Giter Site logo

Comments (22)

marvin-w avatar marvin-w commented on July 22, 2024 3

I have the same error

Reverting to 5.0.0 works.

from ngx-moment.

Delagen avatar Delagen commented on July 22, 2024 2

Resolved in #273. Please install 6.0.1 version

from ngx-moment.

ETMitch21 avatar ETMitch21 commented on July 22, 2024 1

I'm experiencing this issue still and I just installed to a project.

from ngx-moment.

ct5845 avatar ct5845 commented on July 22, 2024

Similiar issues

Error: Symbol TimeAgoPipe declared in $/node_modules/ngx-moment/time-ago.pipe.d.ts is not exported from ngx-moment/moment.module

from ngx-moment.

CynanX avatar CynanX commented on July 22, 2024

I've the same..

from ngx-moment.

ct5845 avatar ct5845 commented on July 22, 2024

Might be irrelevant, but when trying to build the master branch i'm getting this error;

Building Angular Package

------------------------------------------------------------------------------
Building entry point 'ngx-moment'
------------------------------------------------------------------------------
× Compiling with Angular sources in Ivy partial compilation mode.
node_modules/@types/eslint/index.d.ts:450:42 - error TS2724: '"C:/Users/***/Documents/GitHub/ngx-moment/node_modules/@types/estree/index"' has no exported member named 'ChainExpression'. Did you mean 'ThisExpression'?

450         ChainExpression?: ((node: ESTree.ChainExpression & NodeParentExtension) => void) | undefined;
                                             ~~~~~~~~~~~~~~~
node_modules/@types/eslint/index.d.ts:473:43 - error TS2694: Namespace '"C:/Users/***/Documents/GitHub/ngx-moment/node_modules/@types/estree/index"' has no exported member 'ImportExpression'.

473         ImportExpression?: ((node: ESTree.ImportExpression & NodeParentExtension) => void) | undefined;
                                    

UPDATE: On different PC didn't get these build errors, so probably local environment issue.

from ngx-moment.

aleperfetti81 avatar aleperfetti81 commented on July 22, 2024

Hi have the same error message:
Error: export 'MomentModule' (imported as 'MomentModule') was not found in 'ngx-moment' (module has no exports)

Angular CLI: 13.0.3
Node: 16.13.0
Package Manager: npm 8.1.0
OS: win32 x64

Angular: 13.0.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package Version

@angular-devkit/architect 0.1300.3
@angular-devkit/build-angular 13.0.3
@angular-devkit/core 13.0.3
@angular-devkit/schematics 13.0.3
@angular/cdk 13.0.3
@angular/cli 13.0.3
@angular/material 13.0.3
@angular/material-moment-adapter 13.0.3
@schematics/angular 13.0.3
rxjs 7.4.0
typescript 4.4.4

from ngx-moment.

urish avatar urish commented on July 22, 2024

Sorry, but I don't have the bandwidth to look into this right now. If anyone is up to it, I'd love to see a pull request. Otherwise I'll just revert the change and go back to v5.0.0

from ngx-moment.

Rambou avatar Rambou commented on July 22, 2024

@urish the v6 has already been publish on npmjs https://www.npmjs.com/package/ngx-moment it needs to be fixed now

from ngx-moment.

tarlepp avatar tarlepp commented on July 22, 2024

Yep, I noticed the same after updating - Error: export 'MomentModule' (imported as 'MomentModule') was not found in 'ngx-moment' (module has no exports)

from ngx-moment.

Stankman avatar Stankman commented on July 22, 2024

Same error here!
./src/app/app.module.ts:69:12-32 - Error: export 'MomentModule' (imported as 'MomentModule') was not found in 'ngx-moment' (module has no exports)

./src/app/app.module.ts:92:64-79 - Error: export 'MomentModule' (imported as 'i4') was not found in 'ngx-moment' (module has no exports)

from ngx-moment.

tarlepp avatar tarlepp commented on July 22, 2024

hmm, no cannot see that 6.0.0 on releases page - https://github.com/urish/ngx-moment/releases/ - but npmjs.com is showing that 6.0.0 release - https://www.npmjs.com/package/ngx-moment

@urish was that a mistake version bump or are we really facing real issue here?

from ngx-moment.

urish avatar urish commented on July 22, 2024

@tarlepp real issue

from ngx-moment.

lacroixdavid1 avatar lacroixdavid1 commented on July 22, 2024

Same issue here after updating to 6.0.0.


./projects/network/src/app/routes/offer/offer/offer-view/offer-view.module.ts:78:8-20 - Error: export 'DurationPipe' (imported as 'DurationPipe') was not found in 'ngx-moment' (module has no exports)

./projects/network/src/app/routes/offer/offer/offer-view/offer-view.module.ts:83:12-24 - Error: export 'MomentModule' (imported as 'MomentModule') was not found in 'ngx-moment' (module has no exports)

./projects/network/src/app/routes/offer/offer/offer-view/offer-view.module.ts:160:8-20 - Error: export 'MomentModule' (imported as 'MomentModule') was not found in 'ngx-moment' (module has no exports)

from ngx-moment.

Koslun avatar Koslun commented on July 22, 2024

Would appear that all exports from the package is broken? Hoping for some hero to fix this.

This is our errors:

 ./SOME_PATH - Error: export 'DateFormatPipe' (imported as 'DateFormatPipe') was not found in 'ngx-moment' (module has no exports)
../SOME_PATH - Error: export 'MomentModule' (imported as 'MomentModule') was not found in 'ngx-moment' (module has no exports)

from ngx-moment.

tobigit avatar tobigit commented on July 22, 2024

Same error here:
Error: export 'MomentModule' (imported as 'MomentModule') was not found in 'ngx-moment' (module has no exports)

from ngx-moment.

tarlepp avatar tarlepp commented on July 22, 2024

@urish is there some estimate when this is fixed? or is there something that we could help you with this issue?

from ngx-moment.

urish avatar urish commented on July 22, 2024

@tarlepp a pull request with a fix would be appreciated. I don't currently have the bandwidth to dig into why the tooling doesn't package the code correctly

from ngx-moment.

tarlepp avatar tarlepp commented on July 22, 2024

looks like this repository doesn't have that 6.0.0 tag anymore but it exists on https://www.npmjs.com/package/ngx-moment - should that be also reverted?

from ngx-moment.

CynanX avatar CynanX commented on July 22, 2024

Hi. So I just came to take a look at this and see if I could fix it. I pulled down the master branch, built it locally, pointed to it in my local project and it works fine. Perhaps the issue is a bad deployment to the NPM repository only?

from ngx-moment.

tarlepp avatar tarlepp commented on July 22, 2024

or maybe those two commits after 6.0.0 just fixed this already - https://github.com/urish/ngx-moment/commits/master ?

from ngx-moment.

Delagen avatar Delagen commented on July 22, 2024

@urish Sad by this occured #245. I open PR soon.

from ngx-moment.

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.