Trying to write a game localisation tool. I thought of parsing a CSV file. Found two npm modules which can get the job done quickly ‘fast-csv’ and ‘cdv-parser’. But cocos said “wait, can’t let you have things too easily man!”. anyways, The version I am using is Cocos creator 3.3 and I followed instructions which were,
- npm install --save MODULE_NAME - npm install
but when I am trying to import module in code like this,
import csv from "fast-csv"
I get no error in vs code but when I return to editor I get following errors,
Failed to resolve fast-csv from file:///Users/zerosingh/work/gzp-pool/assets/scripts/GameManager.ts, treat it as external dependency.
[Scene] Failed to resolve fast-csv from pack:///mods/fs/0/assets/scripts/GameManager.js.
Kindly help because It will be really boring to write your own CSV Parser. Great engine bdw. I understand its not. engine’s mistake. Thanks.