I’m just starting a new project where the application version has to be displayable in an about page on the frontend. I would like to get this from the package.json version. I am using stealjs with canjs (all latest available versions). I tried
import PackageJSON from '~/package.json';
This seems to work ok, but I get a warning from steal.
The module with address http://172.16.14.216:9001/package.json is being instantiated twice. This happens when module identifiers normalize to different module names. Modules: package.json!npm email@example.com#package.json - http://172.16.14.216:9001/app/config.js
Or, maybe someone has a better idea on how to achieve what I am trying to achieve. I’m thinking that perhaps I do not have to explicitly import package.json (with a bit of luck).
Thanks in advance