Skip to content

Cannot find module '../config.default.cson'. #394

@ghost

Description

  • WPHC version: Latest
  • Node version: Latest
  • NPM version: Latest

I am getting this error when I run ionic serve. The config.default.cson is in the /src file and has not been touched. I just cant seem to figure out what is wrong.

Typescript error
Cannot find module '../config.default.cson'.

myapp/src/providers/config.ts

line 6. import { defaultConfig } from '../config.default.cson';

here is my config.ts file:

import { Injectable } from '@angular/core';
import deepExtend from 'deep-extend';
import _get from 'lodash/get';
import debug from 'debug';

import { defaultConfig } from '../config.default.cson';

const configOverwrite = require('../../config/config.cson');

const log = debug('Config');

const rawConfig = deepExtend(defaultConfig, configOverwrite);

@Injectable()
export class Config {

--

Ionic Framework: 3.8.0
Ionic App Scripts: 3.1.2
Angular Core: 4.4.4
Angular Compiler CLI: 4.4.4
Node: 8.9.4
OS Platform: Windows 7
Navigator Platform: Win64
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0

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