Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grunt build tries to transpile .json files #1561

Closed
carragom opened this issue Jan 14, 2016 · 2 comments
Closed

grunt build tries to transpile .json files #1561

carragom opened this issue Jan 14, 2016 · 2 comments
Labels

Comments

@carragom
Copy link

Hi there,

I added a server/log4js.json file to my project generated with version 3.1.1. And now grunt build breaks with the following error:

Running "babel:server" (babel) task
Warning: server/log4js.json: Unexpected token (2:19) Use --force to continue.

Aborted due to warnings.

I fixed the issue by removing .json files from the babel:server task. I don't see why grunt build would try to transpile .json files. Am I missing something here or is this a bug?

Thanks for the great generator by the way.

@carragom carragom changed the title grunt build tries to compile .json files grunt build tries to transpile .json files Jan 14, 2016
@Awk34
Copy link
Member

Awk34 commented Jan 14, 2016

This line is what you're probably talking about. It should just be .js.

@Awk34 Awk34 added the bug label Jan 14, 2016
Awk34 added a commit that referenced this issue Feb 19, 2016
@rohita77
Copy link
Contributor

same issue exist with gulp also. Unfortunately removing "paths.server.json" also skip copying of the file to the dist and does not get deployed. I am using the .json files as stubs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants