Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ionic2 You may need an appropriate loader to handle this file type

$
0
0

@richardshergold wrote:

I'm suddenly getting a build error of

./app/app.js
Module parse failed: /Users/richardshergold/Documents/Ionic Projects/PortalToday/node_modules/awesome-typescript-loader/dist.babel/index.js?{"doTypeCheck":false,"useWebpackText":true}!/Users/richardshergold/Documents/Ionic Projects/PortalToday/app/app.js Line 117: Illegal return statement
You may need an appropriate loader to handle this file type.
| findMenuItemByTitle(title);
| {
| return this.pages.find(function (menuItem) {
| return menuItem.title === title;
| });
@ multi main (CLI v2.0.0-beta.17)

I've building under alpha54 and have matched up all my project config files with the Conference app.

Does anyone know what might be causing this? I removed all the node modules and then did npm install to re-install everything but it hasn't helped. I'm not using Typescript, just js files.

Posts: 17

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>