baseUrlに.をセットして意気揚々とimport {XXX} from 'xxx/xxx';
を試みたが、ダメだった。
このIssue commentにある通り、create-react-appはv3.2.0からbaseUrl: '.'を使用できるようになったが、src/から始まるパスしかインポートできない制限がある。
なんてこった…。
More than 3 years have passed since last update.
create-react-appのbaseUrlには.を指定できるが、src以外はインポートできない
Last updated at Posted at 2020-07-12
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme