Git Product home page Git Product logo

Comments (7)

wli avatar wli commented on June 13, 2024 4

I'm seeing the same thing as @lordgreg with [email protected]

from ngx-moment.

remithomas avatar remithomas commented on June 13, 2024 1

I resolved it by adding some options to the gulpfile.js specialy to buildBrowserify options in the task watch. It works !

buildBrowserify({
 watch: true,
 // add this below
 browserifyOptions: {
  cache: {},
  packageCache: {},
  debug: true,
  extensions: ['.js', '.ts']
 }
}).on('end', done);

Modify also the task build

buildBrowserify({
 watch: true,
 browserifyOptions: {
 cache: {},
 packageCache: {},
 debug: true,
 extensions: ['.js', '.ts']
 }
})

from ngx-moment.

urish avatar urish commented on June 13, 2024

Hi, can you please publish a small code sample that reproduces the issue? Gist or plunker.

from ngx-moment.

wieseljonas avatar wieseljonas commented on June 13, 2024

Hi Urish here is my package.json . I get the error when I declare the TimeAGoPipe in my Component.

{
  "name": "mako",
  "description": "Mako",
  "license": "Apache-2.0",
  "repository": {
    "type": "git",
    "url": "https://github.com/driftyco/ionic-conference-app.git"
  },
  "dependencies": {
    "angular2": "^2.0.0-beta.7",
    "angular2-jwt": "0.1.6",
    "es6-promise": "3.0.2",
    "es6-shim": "^0.35.0",
    "ionic-angular": "2.0.0-beta.3",
    "ionic-native": "^1.1.0",
    "ionicons": "3.0.0-alpha.3",
    "lodash": "^4.6.1",
    "reflect-metadata": "0.1.2",
    "rxjs": "^5.0.0-beta.2",
    "zone.js": "^0.6.6"
  },
  "devDependencies": {
    "babel-preset-es2015": "^6.6.0",
    "del": "1.1.1",
    "gulp": "3.9.1",
    "gulp-watch": "4.3.5",
    "ionic-gulp-browserify-typescript": "^1.0.0",
    "ionic-gulp-fonts-copy": "^1.0.0",
    "ionic-gulp-html-copy": "^1.0.0",
    "ionic-gulp-sass-build": "^1.0.0",
    "ionic-gulp-scripts-copy": "^1.0.0"
  },
  "cordovaPlugins": [
    "cordova-plugin-whitelist",
    {
      "locator": "https://github.com/VersoSolutions/CordovaClipboard",
      "id": "com.verso.cordova.clipboard"
    }
  ],
  "cordovaPlatforms": [
    "ios",
    "android"
  ]
}

from ngx-moment.

lordgreg avatar lordgreg commented on June 13, 2024

I have a bit different problem, but still related with latest ionic2 project:

 ✗
C:\Development\abcd\node_modules\angular2-moment\CalendarPipe.ts:3
import {Pipe, ChangeDetectorRef, PipeTransform, EventEmitter, OnDestroy} from 'angular2/core';
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'

from ngx-moment.

aramkoukia avatar aramkoukia commented on June 13, 2024

I get the same error when I added ng2-uploader component.
Adding the js and ts extension like above didnt fix my issue.

from ngx-moment.

urish avatar urish commented on June 13, 2024

should probably be fixed by #34. Please reopen if still relevant

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.