visual-studio


Ionic: Error: Module build failed: Error: ENOENT: no such file or directory


I am using Ionic, and get the following error:
Runtime Error Uncaught (in promise): Error: Module build failed:
Error: ENOENT: no such file or directory, open
'/Users/richardmarais/Development/ionic/theWhoZoo/src/pages/model/ratingModel.js'
The error is a result of this line of code:
this.ratingModel = new RatingModel();
When I remove this line, I don't get the error.
ratingModel.ts
import { Injectable } from "#angular/core";
import { PersonModel } from './personModel';
import { JobModel } from './jobModel';
#Injectable()
export class RatingModel {
public id: number = null;
public job: JobModel = null;
public review: string = null;
public rating: number = null;
public reviewDate: number = null;
public time: string = null;
public person: PersonModel = null;
public anonymous: number = null;
constructor() {
}
}
Reading other forums, people are getting this error due to the case not matching in their imports, but I have checked mine, and they do match.
import { RatingModel } from '../model/ratingModel';
However, I have noticed something strange in my IDE (Visual Studio Code):
As you can see, in the search results, there are two files for the object, ratingModel.ts and RatingModel.ts. But when I check the actual files system, there is only on file, ratingModel.ts:
Question
Does anyone know what and how to resolve what looks like possibly a bug or fault here?
Thanks
More info:
global packages:
#ionic/cli-utils : 1.0.0
Cordova CLI : 6.4.0
Ionic CLI : 3.0.0
local packages:
#ionic/app-scripts : 1.3.0
#ionic/cli-plugin-cordova : 1.0.0
#ionic/cli-plugin-ionic-angular : 1.0.0
Ionic Framework : ionic-angular 3.2.1
System:
Node : v7.10.0
OS : macOS Sierra
Xcode : Xcode 8.3.2 Build version 8E2002
ios-deploy : not installed
ios-sim : not installed

Related Links

Slow debugging with VS2015 and Trend Micro anti-virus
Is there a way to support snapshots with NugGet and native libraries?
External References to SQL tables in Visual Studio
Some kind of “regions” in TypeScript and VisualStudio(2013)
Can't connect VS2017 RC to mac agent
How do I get Postgresql as an option in Visual Studio 2015 Data Connections
Joyent Node.js The software is missing from your system. You may also have to configure it after installation
Visual Studio 2017 RC install error 0x80131500 Failed to deserialize packages
Visual Studio Code support emmet?
What is this white background window under editor margin status in Visual Studio?
Rust code cannot link with a C library compiled on Windows because there is an unresolved external symbol
How to get the Browser UserAgent String in Visual Basic 6?
Prevent visual studio Query Designer to modify the query before execution
How to load/open Registry Class Diagram .CD file?
Script error login visual studio DefaultLogin_PCore.js
Can't open properties and any .cs form

Categories

HOME
protocol-buffers
lambda
apple-push-notifications
clearcase
openxml
systemd
plaid
slider
semantic-web
dronekit-python
swift2
bittorrent
polymer-2.x
mutation-testing
log4j2
scrape
xades4j
business-intelligence
android-externalstorage
dma
playframework-2.0
exec-maven-plugin
qa
cell
software-packaging
environment
offline-caching
sap-lumira
points
jackrabbit-oak
spring-annotations
copy-protection
monitor
autodesk-model-derivative
infopath2010
memory-fences
advanced-filter
busboy
classnotfoundexception
angular-datatables
sonatype
popen
swiperefreshlayout
sidewaffle
bpms
portal
tsqlt
msbuild-4.0
traversable
qtcpsocket
static-methods
wicked-pdf
rails-engines
accessibilityservice
taco
jsr363
perceptron
opencyc
gluon-desktop
jnlp
ngcordova
roxygen2
mobilefirst-server
explain
abstract-factory
prism-4
python-c-extension
html-escape-characters
jquery-mobile-flipswitch
rails-api
sqlbindparameter
map
nosql-aggregation
strdup
facebook-game-groups
codahale-metrics
quickgraph
unicoins
significant-digits
zotonic
series-40
yuidoc
qt-mobility
anonymous-types
bass
solandra
iphone-sdk-4.3
powergui
3270
.net-client-profile
gtktextview

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App