Skip to content

Module parse failed  #73

@KhoaSydney

Description

@KhoaSydney

Hi @jbrantly ,

I have a very weird warning with the following details:

WARNING in ./app/hubs/modelling/retirement/test-inputs/dialogs/AddInvestmentController.js.map
Module parse failed: C:\Projects\Midwinter.ReasonableBasis\Midwinter.AdviceOS.Web\app\hubs\modelling\retirement\test-inputs\dialogs\AddInvestmentController.js.map Line 1: Unexpected token :
You may need an appropriate loader to handle this file type.
| {"version":3,"file":"AddInvestmentController.js","sourceRoot":"","sources":["AddInvestmentController.ts"],"names":["AddInvestmentsController","AddInvestmentsController.constructor","AddInvestmentsController.activate","AddInvestmentsController.save","AddInvestmentsController.cancel"],"mappings":"OAGO,cAAc,MAAM,uBAAuB;AAElD;IAcIA,YAAoBA,MAAMA,EAAUA,MAAeA;QAA/BC,WAAMA,GAANA,MAAMA,CAAAA;QAAUA,WAAMA,GAANA,MAAMA,CAASA;QAC/CA,IAAIA,CAACA,QAAQA,EAAEA,CAACA;IACpBA,CAACA;IAEDD,QAAQA;IAERE,CAACA;IAEDF,IAAIA;QAEAG,IAAIA,CAACA,OAAOA,EAAEA,CAACA;IACnBA,CAACA;IAEDH,MAAMA;QAEFI,IAAIA,CAACA,OAAOA,EAAEA,CAACA;IACnBA,CAACA;AACLJ,CAACA;AA9BU,gCAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAE/B,2BAAE,GAAG,cAAc,CAAC,+BAA+B,CAAC,YAAY,GAAG,iBAAiB,CA4B9F"}
 @ ./app/hubs/modelling/retirement/test-inputs/dialogs ^\.\/.*$

WARNING in ./app/hubs/modelling/retirement/test-inputs/dialogs/AddLoanController.js
Module parse failed: C:\Projects\Midwinter.ReasonableBasis\Midwinter.AdviceOS.Web\app\hubs\modelling\retirement\test-inputs\dialogs\AddLoanController.js Line 1: Unexpected token
You may need an appropriate loader to handle this file type.
| import NavigationPath from "route/navigation.path";
| export default class AddLoanController {
|     constructor($scope, common) {
 @ ./app/hubs/modelling/retirement/test-inputs/dialogs ^\.\/.*$

WARNING in ./app/hubs/modelling/retirement/test-inputs/dialogs/AddLoanController.js.map

Why does ts-loader try to process the js file? Another weird thing is that the warning/ error only occurred in /test-inputs module. After I deleted the *.js file in that folder, everything is fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions